I have 3 theme files:
They both have content which is added to via a
navigation.php has some content added to it via a
Based on the page being called, I would want to include
header.php as well.
How would I do this?
navigation.php to be included into
page.php while both have content that is added to it via a
My guess Create a page called 'Navigation', for example. I never display this link in my templates so that it's not used as a page on it's own even though it exists as one. This will allow me to edit its contents.
Create another page by whatever name, this would use
page.php would use some function to include
navigation.php based on
If that idea is right, can someone please elaborate and give me details on what functions I would use, etc?