WordPress call to undefined function get_header();

后端 未结 2 737
长发绾君心
长发绾君心 2021-01-16 12:44

Firstly, I have looked for previous posts about this topic, but none have the answer that I need. So I shall rephrase to fit my problem best.

I\'m taking my first cr

相关标签:
2条回答
  • 2021-01-16 13:29

    get_header()
    is not a PHP function and thats why it is throwing Fatal error: Call to undefined function

    get_header()
    is a wordpress function - have you loaded the wordpress function prior to running this function - this is usually done with an include?

    0 讨论(0)
  • 2021-01-16 13:46

    Generally this happens when someone has mistakenly put index.php from a theme in the WP install folder, where it overwrites the index.php that is the main WordPress file.

    That is, the index.php that lives in the root directory (thats the directory with the wp-config.php in it) is NOT an editable theme file.

    0 讨论(0)
提交回复
热议问题