I'm working with an existing PHP web application. It's site structure is similar to:
- public_html
- include
- header.php
- style.css
- footer.php
- blog
- include
I've installed Wordpress in /blog. I am trying to create a Wordpress theme using the dynamic elements of the external PHP app.
Here is an example of /blog/wp-content/themes/custom-theme/index.php:
<?php
include_once("../../../../include/header.php");
?>
The theme is not reproducing the header code. I've tried variations of the relative path, just in case, with no success. Are there other considerations I haven't taken into account?
include_once("/include/header.php");
should work. – Paul Dessert