View Full Version : Wordpress, some basic PHP Help please

12-16-2008, 10:11 PM
Hi im just wondering on my site,
how do i make it so that the headings Origins, News and Archives only appear for the index.php page and not the others?

I have tried things with Sites in the wordpress admin, but clearly wordpress isnt built by default to do such a thing. So I'm guessing I have to go with PHP? I have tried something like adding <?php if (is_home()); ?> to the start of those headings and <?php endif to the bottom of them. Doesn't work though.

and also so that stuff like Tags won't use all of that headings as well.

Any help would be v. appreciate ty.

12-16-2008, 10:35 PM
worked it out by

<?php if ( is_home() ) { include ('file.php'); } ?>

but , how to do it instead of including? like <open> </end> kind of way?