I have a question regarding the category page. Basically I have split my posts into categories and some categories have sub categories but the posts are always only in the last category level. So for example Photos > Travel > Africa – The post is in the final category level “Africa”. There a no posts in the intermediate category “Travel”.
My question is, how can I get WordPress to only show the posts in the current category you are on? By default it seems that if you are on the “Photos” category it will display all the posts in the sub categories. I’d like to only display a menu of the categories and then show the posts once you get down to the category that actually contains the posts. Hope that makes sense!
I am hoping to achieve this by editing the category.php file and to not use anything static. As the category structure may change etc. I appreciate any help, Thanks.
- The topic ‘Only show posts from current category’ is closed to new replies.