WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] WP themes on non WP pages

[Resolved] WP themes on non WP pages

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] WP themes on non WP pages’ is closed to new replies.