display random post in current category?
Hi everyone I am using the twenty ten theme and all my posts are ordered by the newest one at top, how can I make it random? So when I click into my categories on home page it will show all post of that category random.
I know the
But because I have alot of categories I dont want to make a php file for every category and query random posts for a specific category in a specific category.php. And if I only put in order=rand, then it will show all random post (from all categories).
I can’t find anything regarding to order of post in my loop-category.php
maybe I need to add the above code within my loop so it calls for random post within the current category?
Hope someone can help me out
Thanks alot in advance
- The topic ‘display random post in current category?’ is closed to new replies.