Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 5 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
add comment

Your Answer

 
discard

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.