includes and wordpress
-
hello,
I’m trying to link certain files in the header in certain situations. Basically when your viewing the static front page of my site one file will be included in the header, where in everyother situation a second file will be included instead. I understand the concept of how this will work, but the syntax is alittle iffy for me.. so the pseudo code would look like..
if ($frontpage == 1) {
include(‘front-page.php’);
}
else {
include(‘not-front.php’);
}please help me with the syntax, thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘includes and wordpress’ is closed to new replies.