Problem with displaying child categories.
-
I have category template portfolio.php for my Portfolio category. This category has child category and when I choose child category I see all my post from child category on custom category template not on portfolio template. How to solve this?
Before loop I have this code:<?php $limit = ('10'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('showposts=' . $limit . '&paged=' . $paged .'&cat='4'); $wp_query->is_archive = true; $wp_query->is_home = false; ?>
I want to see each child category in the same page style like parent category. When I choose child category I want to see only posts from this category not from parent or other child. Use like a filter. Thank you!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Problem with displaying child categories.’ is closed to new replies.