WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP themes on non WP pages (3 posts)

  1. 7784
    Member
    Posted 8 years ago #

    Yes, I know this has been asked before, but I simply can't get it to work.

    I need to use WP's header and footer on a static page (and can't use the "pages" feature).

    So I include this code into the page:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('/home/co7784/public_html/wp-blog-header.php');
    ?>

    <?php get_header(); ?>

    And all I get is a direct clone of my WP index, blog posts n'all.

    Any ideas?

  2. spirit892
    Member
    Posted 8 years ago #

    Try this.
    Hope it helps.

  3. 7784
    Member
    Posted 8 years ago #

    Thank you :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags