Load WordPress functions outside WordPress files in Add on Domain

Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as synt

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 question

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

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 question

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

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
  • How is your folder structure and how do you point your DOMAIN and ADD ON DOMAIN to? – Nam Duong Commented Sep 12, 2019 at 9:27
  • public_html>primarydomain files >addon domain folder(inside the primarydomain there is my addon domain folder). – dominic tonui Commented Sep 12, 2019 at 9:33
  • i pointed add on domain inside primary domain – dominic tonui Commented Sep 12, 2019 at 9:34
  • I have install wordpress on both domain – dominic tonui Commented Sep 12, 2019 at 9:36
  • any idea on how to solve this problem? – dominic tonui Commented Sep 12, 2019 at 10:09
 |  Show 1 more comment

1 Answer 1

Reset to default 0

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745162175a4614436.html

相关推荐

  • Load WordPress functions outside WordPress files in Add on Domain

    Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as synt

    5小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信