How to use own php variables in wordpress template?

后端 未结 4 1217
孤街浪徒
孤街浪徒 2021-01-15 13:05

I am using a wordpress template in php like this:



...Hello World...



        
4条回答
  •  死守一世寂寞
    2021-01-15 13:52

    By default get_header() pulls the header.php file. you could simply rewrite the header.php file to include what you want. If you don't want to rewrite it for all templates but for only a few you could use get_header('name') which would grab header-name.php in which you could have your own items.

提交回复
热议问题