is_404 returning true on outside page (2 posts)

  1. maestro42
    Posted 6 years ago #

    I am using my template on an page outside of wordpress.

    I put this at the top of the php file


    However, when I have a call to is_404() - it is returning true. But it's not a 404 page. Any thoughts? Thanks!

  2. buddha trance
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.