![]() |
|
Fatal error: Call to undefined function get_header() - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141) +---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50) +---- Thread: Fatal error: Call to undefined function get_header() (/showthread.php?tid=258025) |
Fatal error: Call to undefined function get_header() - Farul - Feb 3, 2010 This is a wordpress problem I want to link pages on my blog that isen't on my blog (Im gonna host is OFC) so i made this, so the page will look like a blog page but its not <?php get_header(); ?> <div class="content"> <div class="leftcontent"> <div class="article"> <h2><a href="link" title="name"></a></h2> <div class="postcontent"> <p style="text-align: right;"><img class="alignleft" src="link" alt="name" height="394" width="295">text</p> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> but i get this error Fatal error: Call to undefined function get_header() what do i have to do or where do i have to upload the file so it can find header.php? ohoh, and sidebar and footer ofc ^^ * - MyNameIs940 - Feb 3, 2010 You need to include the script where all the functions are. You can't do a function without declaring what it does, lol. Just include_once('filename.php'); * - Farul - Feb 3, 2010 (Feb 3, 2010 09:25 AM)MyNameIs940 Wrote: You need to include the script where all the functions are. You can't do a function without declaring what it does, lol. Just include_once('filename.php'); yeah, i found that out ... *facepalm |