WordPress query with items from more than one selfdefined taxonomy as `term` argument

I managed to do it. I used the following query parameter: ‘tax_query’ => array( array(‘taxonomy’ => ‘wpccategories’, ‘field’ => ‘slug’, ‘terms’ => $termz ) ) With $termz being: $termz = wp_get_object_terms($id, ‘wpccategories’, array(“fields” => “slugs”)); The problem I struggled with was that I needed to use singular ‘field’with singular ‘slug’ in the tax_query (I knew … Read more

How do I require the specification of term in a custom post type and custom taxonomy?

I’m working on something similar at the moment. I’ve decided on using radio buttons or a dropdown to ensure a user has to pick from my taxonomy terms when creating their post. I’m still refinig my solution, but these two articles have helped me a lot: http://themefoundation.com/wordpress-meta-boxes-guide/ I want my metabox to appear in multiple … Read more