Archived topic
function causes header to disappear.
3 replies · Started by John MacKenzie on January 29, 2021
re this support thread
https://generatepress.com/forums/topic/hide-child-posts-from-parent-categories/
i added in the code referenced that worked, however when i do this it REMOVES the header element i have set to display on categories (so menu and Header image disappear now on those pages?
thanks!
Hi there,
posts_where has the ability to mess with the Elements query and break Display Rules.
Instead, the solution that David pointed to in that topic looks much better: https://wordpress.stackexchange.com/questions/136486/exclude-sub-category-posts-from-category-display/136490#136490
oh gosh thanks! that works.
J
No problem! :)