I am using my template on an page outside of wordpress.
I put this at the top of the php file
<?php
require('../wp-blog-header.php');
?>
However, when I have a call to is_404() - it is returning true. But it's not a 404 page. Any thoughts? Thanks!
I am using my template on an page outside of wordpress.
I put this at the top of the php file
<?php
require('../wp-blog-header.php');
?>
However, when I have a call to is_404() - it is returning true. But it's not a 404 page. Any thoughts? Thanks!
One of these should work
according to http://moshublog.com/2005/07/05/integrate/2/
the path is ./ (and not ../)
I have seen this code sometimes as require_once
Make sure you follow the correct path, in case your blog is in a directory (wordpress/wp-blog-header.php or blog/wp-blog-header.php)
You can try an absolute path
This topic has been closed to new replies.