How can I order Wordpress tags?

Jack London

New member
Joined
Jul 9, 2012
Messages
386
Points
0
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
2,708
Replies
0
Views
1,950
Replies
5
Views
3,903
Replies
3
Views
8,284
Newer threads
Replies
4
Views
3,049
Replies
9
Views
3,821
Replies
0
Views
2,005
Replies
0
Views
3,896
Latest threads
Replies
2
Views
108
Replies
1
Views
187
Replies
6
Views
407
Replies
11
Views
544
Replies
2
Views
236
Recommended threads

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

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