[Resolved] pulling 1 random post from a specific category
i have one category set up for splash/entry pages on a project.
the idea is to show one single random excerpt and nothing else on the index
so far it has been cake:
– i have the single cat,
– single post,
– nothing but excerpt
the part i am missing is the randomization
i tried this:
<?php shuffle(query_posts("showposts=1&cat=1")); ?>
i thought the shuffle function would randomize the query and it would pull the “top” of the randomized group. no dice. (thanks to whoami for the shuffle tidbit)
i spent a good 3 hours searching on here, googling and trying to figure this out myself.. but i am throwing in the towel and groveling for your mercy /sadface
any help would be greatly appreciated
- The topic ‘[Resolved] pulling 1 random post from a specific category’ is closed to new replies.