• maestro42

    (@maestro42)


    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!

Viewing 1 replies (of 1 total)
  • buddha-trance

    (@buddha-trance)

    One of these should work

    according to https://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

Viewing 1 replies (of 1 total)
  • The topic ‘is_404 returning true on outside page’ is closed to new replies.