Query for current category with paging?
-
Hello,
I build a wordpress website and build the theme completely myself. The website uses 10 categories. Each post is placed in one of the categories so i have one categorie that displays all posts. The other categories are for displaying a specific category.
Because off a lot of posts i added paging… but the problem is that each category now displays all the posts. I think because of a query problem. I need a query with paging that displays only the posts of the current category.
i use the following code before the standard loop code:
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query(‘showposts=5′.’&paged=’.$paged);?>
i hope someone have a suggestion!
greetz
- The topic ‘Query for current category with paging?’ is closed to new replies.