Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2007
    Posts
    43
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Wordpress, some basic PHP Help please

    Hi im just wondering on my site,
    http://www.anothera.net/v2
    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.

  • #2
    New Coder
    Join Date
    Dec 2007
    Posts
    43
    Thanks
    9
    Thanked 0 Times in 0 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •