On my set-up, there is the regular website which consists of a header and content (both printed from separate PHP files located in domain.com/includes/) and a Wordpress blog based in a subdirectory (domain.com/blog/).
I want to include domain.com/includes/header.php on the main Wordpress skin. I have tried require_once, include, specifying the ABSPATH in the wp-config, and various other techniques but none of them have worked for me.
Printing the header.php contents to Wordpress skin is vital and there is no compromise for it in my workflow.
I would greatly appreciate any advice as to how I can get this script working, whether it be through a plugin or some edit to the core files, without having to change the location of domain.com/includes/header.php.
Thanks in advance.
<?php include('/includes/header.php'); ?>as well as explicitly stating the full path with domain.com at the beginning. I've tried a few different functions:include,require_onceas I saw somebody suggest on a similar question, as well as including theABSPATH.<?php include('/includes/header.php'); ?>works fine on the main site and prints the contained HTML without error.include?