I created a custom page template where I want to present some data specific for that page.
The file is placed in
wp-content/themes/themename/page-templates
In that file I want to include another php file from the parent directory. That file is placed in:
wp-content/themes/themename
So in the file i write:
<?php include('../Sorting.php');?>
But I receive an error saying the file doesn’t exists.
Warning: include(../Sorting.php) [function.include]: failed to open stream: No such file or directory
I’m not that much into wordpress so I theorized that it was something to do with the include function but it works fine if I put the files in the same folder though.