Problens with wp_Query category Filter
-
Hi guys,
I’m using this function in a custom page to make the loop of the posts in a wordpress page with a little navigation menu.
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(array('cat' => mangas)); $wp_query->query('showposts=2' . '&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
In the theory, the posts must be filtered by the Slug of the category, in this case “mangas”.
But not, the loop it is showing all the posts from my database.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problens with wp_Query category Filter’ is closed to new replies.