• Resolved jamesbarnett39

    (@jamesbarnett39)


    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)
  • Thread Starter jamesbarnett39

    (@jamesbarnett39)

    Problem has been solved.

    <?php
    require('wp-load.php');
    get_header();
    ?>
    Your page content here.
    <?php get_footer(); ?>

    Code for anyone interested in resolving the issue.

Viewing 1 replies (of 1 total)
  • The topic ‘How to call header on a custom page in WordPress directory?’ is closed to new replies.