Home › Forums › Support › function causes header to disappear. This topic has 3 replies, 2 voices, and was last updated 3 years, 1 month ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 29, 2021 at 1:41 pm #1638809 John MacKenzie 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! January 30, 2021 at 10:44 am #1639757 TomLead Developer Lead Developer 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 February 1, 2021 at 11:46 am #1642009 John MacKenzie oh gosh thanks! that works. J February 3, 2021 at 8:48 am #1644448 TomLead Developer Lead Developer No problem! 🙂 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In