Can't include wp-load.php
-
Hey,
I would like to include WordPress API in an external file by including/requiring wp-load.php file.
The problem is when the file is included, the script for some reason automatically redirects me to my WordPress home page and I can’t do nothing.
I already tried any possible option to include the file but it still redirects me. Somebody already faced such a bug?
Empty PHP file with this line is enough to redirect me:
require_once(‘../wp-load.php’);Running on Linux.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Can't include wp-load.php’ is closed to new replies.