How do I create a random tags
-
I do not know how to make random tags, but I have this code. This is not like the Tag cloud. I want the tags every post can be random.
<?php $posttags = get_the_tags(); $count=0; if ($posttags) { foreach($posttags as $tag) { $count++; echo '<a href="'.get_tag_link($tag->term_id).'">'.$tag->name.'</a>'; if( $count >4 ) break; } } ?>
Can the code is converted into random tags?
Can someone help me?
- The topic ‘How do I create a random tags’ is closed to new replies.