How can I order Wordpress tags?

Jack London

Well-known member
Joined
Jul 9, 2012
Messages
158
Points
18
I can get a list of wordpress tags that I created in wp admin. Now I want set a order for each tag
Here's my code
Code:
<?php
$tags = get_tags();
foreach ( $tags as $tag ) {
    $tag_link = get_tag_link( $tag->term_id);
    $mytags .= "<a href='{$tag_link}' title='{$tag->name}' class='{$tag->slug}'>";
    $mytags .= "{$tag->name}</a>";
}
echo $mytags;
?>
Anyone knows ways how I can order tags into groups that I want to show on site?

please share your solutions
 
Older Threads
Replies
5
Views
3,594
Replies
2
Views
5,535
Replies
16
Views
7,987
Replies
3
Views
3,937
Newer Threads
Replies
4
Views
3,171
Replies
0
Views
2,326
Replies
0
Views
4,138
Replies
0
Views
15,190
Recommended Threads
Replies
4
Views
1,572
Replies
1
Views
1,691
Replies
4
Views
4,148
Replies
0
Views
1,067

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top