[wp-hackers] Calling WordPress functions on a non-WordPress page
Ozh
ozh at planetozh.com
Thu Mar 19 19:54:22 GMT 2009
<?php
require('./wordpress/wp-blog-header.php');
get_header();
echo "Yeah";
get_footer();
?>
works fine with me. I get "200 OK" as a header.
On Thu, Mar 19, 2009 at 7:49 PM, Sudar Muthu <sudar at sudarmuthu.com> wrote:
> Hello all,
>
> I want to include the header and footer of my WordPress page on a
> non-WordPress PHP script residing in the same server on a different
> directory. I am using the following code on top of my non-WordPress page
>
> require("../../wp/wp-blog-header.php");
>
> get_header();
>
> The above code works fine, but WordPress sends a 404 error code to the
> browser together with the page content. Can anyone tell me how to prevent
> it?
>
> Also let me know if this is the proper way to do it or is there an alternate
> way to do it.
>
> Thanks!
> With Regards,
> Sudar
>
> http://SudarMuthu.com
> http://twitter.com/sudarmuthu
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
http://planetOzh.com ~ Blog and WordPress Stuff
http://FrenchFragFactory.net ~ Daily Quake News
More information about the wp-hackers
mailing list