wp-router replaces more than just main page content
-
I have a custom WP_Query in my site’s header (in header.php), and wp-router is replacing that content too, instead of just the main content for the page. So the header content is missing, and the main content is on the page twice.
How can wp-router be LIMITED to just the main query / content?
I tried giving my header content a different post_type (a custom CPT i created, called “global_content”). But that didn’t work.. wp-router still replaced that content too.
Can we somehow tell wp-router to only replace a certain post_type?
- The topic ‘wp-router replaces more than just main page content’ is closed to new replies.