Virtual page does not have header or footer inserted into page

Hey there, I have an interesting issue, I am dynamically creating virtual pages. The issue I’m having is that the navbar and footer are inserted into the page but there’s nothing in them.

2020-04-29 11_53_28-Choose Your Plan _ PDX Meal Prep

I’m creating these virtual pages with this users plugin - My template I use to display the page is exactly how I usually create PHP templates and what i’ve been doing for years working with PRO! get_header() and get_footer()

I even went with the default index.php file in PRO and the header and footer are not loaded. I understand that this virtual plugin I’m using is pretty robust but it’s just so weird to me that it loads in x-masthead but doesn’t put anything in it. Any direction would be super helpful. I’ve tried to dive into the PRO codebase to see how the navbars are even generated in here but I can’t figure out it.

Thank you!
Matt

Hi Matt,

Thank you for writing in, try the solution provided here on assigning a header to specific page/post.

Hope it helps,
Cheers!

This is AWESOME!!! Thank you so much. I think for my specific use-case, I’ll have to create some type of dynamic post ID and then fill in that same post ID into that filter in order for it to work properly. I haven’t tested this, but this gives me exactly what I need to understand how those headers/footers are inserted into places. Thank you!!

You’re welcome!
It’s good to know that it has worked for you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.