Copy link to clipboard
Copied
Fatal error: Call to undefined function get_header() in C:\Program Files\Apache Group\Apache\htdocs\fast-weight-loss-diets\wp-content\themes\super-review\index.php on line 2
Line 2 says
1 <?php
2 get_header();
3 ?>
Other php pages will work, but this one doesn't. what am i doing wrong? Please help me.
Copy link to clipboard
Copied
buffbill wrote:
Fatal error: Call to undefined function get_header()
The error message says it all: get_header() is an undefined function. It's a custom function in WordPress. When you view a WordPress blog, the blog application knows where to find the get_header() definition. However, it sounds as though you are trying to view index.php directly in Dreamweaver Live Data view, and Dreamweaver can't find the function's definition.
Long story short: you can't view WordPress pages directly in Live Data view. You need to display the page in a browser, and save a static copy of it to work with in Dreamweaver.
Copy link to clipboard
Copied
Thank you Sir for your help. Now i can move on with my project.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more