How to call header on a custom page in WordPress directory?
-
Hello,
i’ve got a custom page in my main directory with the index.php and its named custompage.html
I will have multiple of these custom pages but i want to be able to call the header and footer on these pages only and leave the rest of the page to be hardcoded in a text editor as I need to use PHP and call things from a database etc.
So for example I’d have a custom page such as football.php with:
get_header
(my own random content for that specific page)
get_footer
I just need to call in the header and footer and edit the custom data between those two.
Is this possible?
My files are in the main wordpress directory.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to call header on a custom page in WordPress directory?’ is closed to new replies.