WordPress.org

Ready to get started?Download WordPress

Forums

Query Posts (3 posts)

  1. freddymungo
    Member
    Posted 7 years ago #

    I want to use query_posts on single pages to only query the last five posts in the category my post is in-- so it changes between photos in different categories. How do I go about doing this?

    EDIT: Actually, either that or display five random photos from the category my post is in would work too. Any ideas?

  2. google_earth
    Member
    Posted 7 years ago #

    There is a good random posts plugin which can be restricted to the category you are in, this might meet your needs.

    See Customizable Post Listings
    Plugin URI: http://www.coffee2code.com/wp-plugins/

  3. geoffe
    Member
    Posted 7 years ago #

    Here's a good Random Posts Plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic