WordPress.org

Ready to get started?Download WordPress

Forums

Random Post Order Based On Category (1 post)

  1. xmatter
    Member
    Posted 1 year ago #

    So I want to be able to display random posts based on their category. I have a sidebar menu setup and have added ONLY categories to it, no pages. When the category is clicked, it currently displays all posts within it. This is all good, except I want it to display the post randomly. I have done this before using Page Templates per category, but I ended up having like 80 page templates. Is there any code that I can include within the index file to obtain the needed results? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic