• Is it possible to build my own static page in .php within the context of WordPress without using the Admins control panel, and still be able to borrow all the modules (get_footer, get_header, etc.)?

    For example, I want to create a front page using VI to assemble the following code:

    <?php get_header(); ?>

    <!– Insert my own special content –>

    <?php get_footer(); ?>

    My preference is to control the visual content using a different editing program, but I still want to be able to use those modules.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t think you can use the functions in that case.

    But what you can do is creating a static page, and include the file you’ve edited with the vi editor into the page, just by using include();

    Thread Starter marc0047

    (@marc0047)

    Thanks for the lead. It lead me to discover that you can in fact do it:

    Rather than create pages through the interface of WP, I created my own ‘about.php’ file in the root WP directory. This is the code inside ‘about.php’:

    <?php
    require(‘./wp-blog-header.php’);
    ?>
    <?php get_header(); ?>

    Delicious About content

    <?php get_footer(); ?>

    As long as I include the require tag to call ‘wp-blog-header.php’ it seems to be all good. But I need to know more about what is ‘wp-blog-header.php’ to anticipate any future problems!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create my own static pages outside the Admins menu?’ is closed to new replies.