I have this code in template.php...
<?php @ require_once ("$pagename.php"); ?>
...to bring content into the template.
I've got a folder called 'news' for all the news articles so how could I edit the code to say 'look for files in the news folder as well as the current folder'?
I guess I would need something like:
<?php @ require_once ("$pagename.php" or "news/$pagename.php"); ?>
...but that doesn't work. How would I change it to work?
Thank you very much and hope to hear from you.