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:
$temp = $wp_query;
$wp_query = new WP_Query();
i hope someone have a suggestion!
- The topic ‘Query for current category with paging?’ is closed to new replies.