I know many people have answered this question, and it already has an accepted answer, but here is a nice approach for a. '/wp-blog-header.php') for the longest time as WordPress even tells you that this is the approach that you should use to integrate WordPress functions, except, it causes 404 headers, which is weird that they would want you to use this approach. This, to me, is a priceless discovery as I was using require_once(dirname(_FILE_). php file is within the root of your WordPress site where your wp-config.php file is located. Then you can simply perform any WordPress functions after this. I found that this approach works best, in your. php file and interact with WordPress without 404 headers and keeping your current structure there is no need for a template file for that one page.
0 Comments
Leave a Reply. |