new wp query by tag, it's not showing category post related
-
Hi,
I had a custom query for post type to show up posts by tag in a category page (and sub-category pages)<?php // The Query $the_query = new WP_Query( 'post_type=video&tag=space' ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
But since I’m using this query all posts are showing up in parent category and children categories without caring about the category they belong.
Before I had `<?php
if (have_posts()) : while (have_posts()) : the_post();
?>` and it was working fine.
How can I accomplish what I’d like to?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘new wp query by tag, it's not showing category post related’ is closed to new replies.