WordPress.org

Ready to get started?Download WordPress

Forums

is_404 returning true on outside page (2 posts)

  1. maestro42
    Member
    Posted 5 years ago #

    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!

  2. buddha trance
    Member
    Posted 5 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

Tags

No tags yet.