Wp-load outside wordpress makes page blank

I am using this code require('wp-load.php'); to include wp-load.php in my php script. But Somehow its giving me blank page and after enabling error reporting there is no error displayed.

Related posts

2 comments

  1. Please make sure error reporting is ‘on’ in the php.ini file. I think
    error_reporting is ‘off’ in your php.ini file. Please turn it ‘on’ .so that you can track the error.

  2. In my case issue was with short codes. Short codes were not enabled and finally problem is solved. Thank you everyone for posting out the possible solutions.

Comments are closed.