Random Posts from Single Category in Sidebar
I have tried several “random post” plugins and can’t seem to get any to do what I’d like.
In my sidebar, I want to display a list of maybe 5 “random posts” pulled from a single category on my blog. So that the sidebar menu would read:
*random post #1
*random post #2
*random post #3
*random post #4
*random post #5
All I want to be called in that list is the “Title” of the post, nothing else. The category ID number is 7.
Can someone please help me with this? I’m not sure if I need to add a plugin or if a simple line of code added to my sidebar.php file would suffice.
- The topic ‘Random Posts from Single Category in Sidebar’ is closed to new replies.