Display WordPress page outside of WordPress
Posted by Kyle Henrie on November 11, 2010 in Do It Yourself
If your like me, I like to customize, customize and customize tools to fit my needs. This enables me to provide the optimal user experience. I am a big fan of WordPress and often get asked how to display a page that looks like its still within the WordPress frame work, but really isn’t.
You need to call the wp-load.php file contained within the root folder of your WordPress installation. Once you have done this, is just a matter of adding the remaining page elements you want to display. Here is the code -
<?php
require( ‘../my_wordpress_install_root/wp-load.php’ );
get_header();
?>
Put your content here!<?php get_footer(); ?>
Depending on where the data is needed, it could be, that the absolute path of WordPress is needed. Hopefully this helps!
Tiny URL for this post: http://tinyurl.com/39w2qx5



That looks pretty straight forward, thanks for writing that :0)
I have a slightly different thing I’m trying to do, and wonder if you know the answer.
I’m looking for a way to place pages from WordPress into my current site. I don’t want the header/footer, just the page along with any shortcodes, and the sidebar would be a bonus.
Joe, all you need to do is add the wp-load.php (require( ‘../my_wordpress_install_root/wp-load.php’ ); and you can now call all of the WordPress page/post information via the Loop. Good luck!
That’s great, thanks.