Load WordPress functions outside WordPress files in Add on Domain

I'm unable to load wp-load.php file from wordpress in my ADD ON DOMAIN. I am using require_once('./wp-load.php'); to load wp-load.php and get_header(); to load header in my php file. Primary Domain is loading wordpress functions fine but add domain is not, it is not throwing up any error.

?php require_once("../wp-load.php"); ?

I am expecting to load wordpress function in my php file on Add domain like the way Primary domain loads

Topic outside-wordpress Wordpress

Category Web


I found the answer, the problem was a wordpress theme. I discover that some themes does not allow anyone to utilize wordpress functions like loading wp-load.php file from wordpress. Thanks to all who commented.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.