• Resolved remopall

    (@remopall)


    Hello. I was wondering if anyone had a widget that is a Tag Cloud but when you click on a tag it will display random posts instead of always showing the same posts.

    IE, I have a tag called Beer. There are 14 posts tagged with beer.

    But whenever I click on the Beer tag it shows the same three ones. Is there a way to show three or 5 random posts?

    Thanks
    Remo

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    Your tag page should show all posts tagged with (say) Beer. Is there a previous post navigation link at the bottom of the page? How many posts per page is youe site configured to show via Settings->Reading?

    Thread Starter remopall

    (@remopall)

    Hello. My page is defaulted to three. I just switched it to 5.

    All the tags are showing in the cloud. What I want is when you CLICK on Beer in the cloud, I want the posts that it shows to be random.

    And no there is no previous post navigation link on the bottom.

    Thanks
    Remo

    esmi

    (@esmi)

    OK – it sounds like your theme’s tag template file doesn’t include the necessary pagination links. Does it have a tag.php template file? Or an archive.php file?

    Michael

    (@alchymyth)

    you might need to add a custom query before the loop in tag.php (if that template does not exist, make a copy of archive.php and save it as tag.php)

    <?php global $query_string;
    query_posts( $query_string . '&orderby=rand' ); ?>
    Thread Starter remopall

    (@remopall)

    Hey guys. Thanks for the help. I found out what I had to do. You guys were very helpful making it easy to understand what I had to do!

    Cheers
    RP

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Looking for Tag Cloud to *display* when clicked random posts’ is closed to new replies.