Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Fatal error: Call to undefined function get_header()

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 ^^
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');
(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


Possibly Related Threads...
Thread / Author Replies Views Last Post
by DTKNDec 23, 2018 08:59 PM 0 125 Dec 23, 2018 08:59 PM
Last Post: DTKN
by handsomedevilNov 13, 2017 12:57 PM 2 141 Nov 13, 2017 12:57 PM
Last Post: Silver Haz3
[Wordpress] by SahajJul 17, 2015 06:30 AM 2 208 Jul 17, 2015 06:30 AM
Last Post: XuHi