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
Including wp-load.php will not setup the WordPress query.
See Integrating WordPress with Your Website for the right way.