Display WordPress page outside of WordPress

Posted by 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