I'm trying to use wp-load.php in a page outside of wordpress so I can access all the functions in wordpress. Typically I just include the file like this

require( $_SERVER['DOCUMENT_ROOT'].'/blog/wp-load.php' ); 

But it doesn't seem to be working. Any tips on what can be going on?

Thanks, Paul

  • This turned out to be a server config issue not a wordpress issue Commented Oct 5, 2010 at 9:06

1 Answer 1


Including wp-load.php will not setup the WordPress query.

See Integrating WordPress with Your Website for the right way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.