Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 5 years ago.
Improve this questionI'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
Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 5 years ago.
Improve this questionI'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
Share Improve this question edited Sep 12, 2019 at 9:10 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Sep 12, 2019 at 9:09 dominic tonuidominic tonui 112 bronze badges 6 | Show 1 more comment1 Answer
Reset to default 0I 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.
primarydomain
files >addon domain folder(inside the primarydomain there is my addon domain folder). – dominic tonui Commented Sep 12, 2019 at 9:33