WordPress.org

Ready to get started?Download WordPress

Forums

Using WordPress functions in non-WordPress PHP script (1 post)

  1. Sudar
    Member
    Posted 5 years ago #

    Hello all,

    I am trying to use my WordPress blog header and footer on a non-WordPress page. I am using the following code to achieve it.

    require("../../wp/wp-blog-header.php");

    The filename of the non-WordPress page is index.php and it resides in a directory. So the page url is like this http://domain.tld/test/index.php

    Now the page is working fine and is displaying my WordPress blog's header and footer, but the server sends the status code 404 in the header.

    Does anybody know how to solve this issue?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.