How can I specify TWO seperate HEADER.PHP files one for one section of my site, and one for another section of my site...
Any help would be GREATLY appreciated.
How can I specify TWO seperate HEADER.PHP files one for one section of my site, and one for another section of my site...
Any help would be GREATLY appreciated.
no worries, fixed it myself by duplicating HEADER.PHP, renaming it to something more relevant and using;
<?php include("abc.php"); ?>
instead of;
<?php get_header; ?>
Bit clumsy, but does the job ;)
why do you say its clumsy? I'm using this method as well, have you found a more..*ahem* elegant, way of accomplishing this?
get_header is nothing more then a fancy function to basically do the same...
Of course the get_header function does more then include a file, but at a basic level it is still an include....
Nothing clumsy about using include, though you could use require, or require_once if WordPress allows this (can't see why not).....
That way noone can call the file in question without a successful inclusion of the 'required' file...
This topic has been closed to new replies.