WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
This turned out to be a server config issue not a wordpress issue – Paul Sheldrake Oct 5 '10 at 9:06
up vote 6 down vote accepted

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

See Integrating WordPress with Your Website for the right way.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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