How to display parent category posts without child category posts?
Since wp_list_categories is defined in the category-template.php file in the wp-includes folder, could you please instruct what code to add/delete and where to do so in the category-template.php file in order to exclude listing of child category posts from parent list of posts.
All I want to do is exclude subcategories from 3 main categories.
At Bibliography page –
Click on ‘Ancient Faith’ parent category in widget on right; then on ‘Home’ child category under that.
All the same post entries are pulled up each time, but all posts are in the ‘Home’ child category, not in the ‘Ancient Faith’ parent category.
Bibliography page has no code to create category list. That code is coming from the plugin, and there is no code in plugin php file that resembles wp_list categories, so the plugin must be pulling that from a core file.
- The topic ‘How to display parent category posts without child category posts?’ is closed to new replies.