WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
query only showing taxonomy of type 'category' not my (2 posts)

  1. sabell2
    Member
    Posted 3 years ago #

    Does this method work with custom taxonomies?

    $myquery['tax_query'] = array(
    array(
    'taxonomy' => 'prof_type',
    'field' => 'slug',
    'terms' => array('lawyer'),
    ),
    array(
    'taxonomy' => 'region',
    'terms' => array('new-york'),
    'field' => 'slug',
    ),
    );
    query_posts($myquery);
  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, that should work.

    The title of this topic is rather confusing, though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic