WordPress.org

Ready to get started?Download WordPress

Forums

Return 1 story from each category that matches particular custom metadata (1 post)

  1. roryreiff
    Member
    Posted 2 years ago #

    Hello,

    I want to easily enter a loop where it outputs the most recent story (matching a particular custom metadata field) from each of my categories. So, with categories 'motorcycles', 'snakes' and 'bikes', I would get returned 3 stories: 1 most recent from each category that happens to have the following metadata ( 'key' => 'promoted', 'value' => 'Featured')

    Any idea how to do this cleanly? Thanks a bunch!

Topic Closed

This topic has been closed to new replies.

About this Topic