Ready to get started?Download WordPress


Query Posts (3 posts)

  1. freddymungo
    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
    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
    Posted 7 years ago #

    Here's a good Random Posts Plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic