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