Archived topic
Removing articles from parent category archive page
3 replies · Started by William on July 8, 2020
Hi there,
Is there a way of removing articles from appearing on all parent category archives (not child category archives)? For example for this page, https://bookanalysis.com/george-orwell/
Many thanks,
Will
Hi there,
Not without some custom coding to modify the posts loop unfortunately.
GP just uses the default wp_query() from WordPress if you need more info:
https://developer.wordpress.org/reference/classes/wp_query/
Okay that makes sense.
Is it possible to have only the child categories appear for parent category archive pages? Or, altogether, remove all the articles for each archive? I can then add them manually.
Hi there,
You would likely need to build custom templates for those parent categories: https://codex.wordpress.org/Category_Templates
You could also use a method like this, possibly: https://docs.wpshowposts.com/article/use-static-pages-as-category-archives/