Getting WordPress navigation inside another page

I’d like to only get the worddpress navigation (header, navigation menu, footer) so I can
add custom pages to the site which can easily integrate in the general template of the side while showing other things in the center instead of blog postings?

Edit: To clarify, I’d either like to know if there’s an easy way to include the functions like header(), footer() (or whatever they’re called) of WordPress in another page, so where those functions are called, it echoes the general layout of WordPress.

Read More

Or, I’d like to know which html files I can include to display the wordpress template’s header, footer, and navagiation menu on a page.

What I’m trying to do is build my own pages on a website, outside of wordpress, which will use my own framework and php code, but call the wordpress’s template to make the look & feel of the pages integrate with the rest of the site.

Related posts

Leave a Reply

3 comments

  1. Add the following lines of code, then you can use whatever WP function you want:

    define('WP_USE_THEMES', false);
    require('./wp-blog-header.php');
    

    Example from my own site:

    <?php 
    define('WP_USE_THEMES', false);
    require('./wordpress/wp-blog-header.php');
    get_header();
    ?>