WordPress call to undefined function get_header();

后端 未结 2 736
长发绾君心
长发绾君心 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?

提交回复
热议问题