This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

query for taxonomy

  • Creator
    Topic
  • #8528
    John
    Participant

    I’d like to query for a taxonomy. I’ve tried:

    array('post_type' => 'listing', 'tax_query' => array( array( 'taxonomy' => 'community', 'field' => 'slug', 'terms' => 'denver') ) );

    and:

    post_type=listing&tax_query=array( "taxonomy" => "community", "field" => "slug", "terms" => "denver")

    The second attempt at least gives me listings, while the first returns posts. Is something getting stripped out as I use arrays? Could be that my query is just wrong, but I don’t think so.
    Same results in builder and post grid template.
    thanks,
    john

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #8529
    John
    Participant

    Nevermind:
    community=denver
    worked.
    I guess look for the simple solution first.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.