QuestionsHow to create Separate Posts and Custom Post Type in Custom Taxonomy template
mmkevinsmith0610 asked 6 months ago

This should work for posts:

<?php $wpquery1 = new WP_Query( array( “post_type” => “post”, “tag” =>$term->slug) ); ?>

The above query will only return posts that have been tagged.

This should work for teams:

<?php $wpquery2 = new WP_Query( array( “post_type” => “brand”, “team” => $term->slug) ); ?>

 

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.