Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress: WP_Query

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #30548
    SFD
    Member

    I am running WordPress 3 and have a WP_Query where I am trying to query two (or more) meta_values.

    new WP_Query('meta_key=class&meta_value=2011&post_type=recruit&posts_per_page=-1&orderby=title&order=ASC&meta_key=committed&meta_value=Michigan')

    It seems that whatever the last meta_key/meta_value pass is what actually gets parsed. But, I want both to be parsed.

    Thanks guys!

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.