custom WP_query with tags
-
Hi !
I’m trying to mage a custom wp_query to return posts with a certain tag from a certain category. Here is my code:
$bios = new WP_Query(); $args = 'cat=6870&tag=tag1,tag2&showposts=2'; $bios->query($args); ?> <?php if ($bios->have_posts()) : ?> ...
I know I have posts in the category with the right tags… but the result stays empty… any idea why ?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘custom WP_query with tags’ is closed to new replies.