Need some quick PHP help

Discussion in 'PHP' started by BILZ, Jul 27, 2006.

  1. #1
    I dont know PHP and need some help. I am customizing my blog template...

    One element of the page has this code:
    Which, if i am not misten, makes everything within that command display only on the homepage.

    I was wondering how i can do the inverse; What code do i write to make the elements within display always except the homepage?

    Thanks for your help in advance.
     
    BILZ, Jul 27, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <?php /* If this is the front page */ if (!is_home()) { ?>
    PHP:
     
    mad4, Jul 28, 2006 IP
    BILZ likes this.
  3. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Or:

    <?php /* If this is the front page */ if (is_home()) { ?>
    stuff to go on the front page
    <?php } else { ?>
    stuff to go on the other pages
    <?php } ?>
     
    Cryogenius, Jul 28, 2006 IP
  4. BILZ

    BILZ Peon

    Messages:
    1,515
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That worked great Mad4. Thanks for your help guys.
     
    BILZ, Jul 28, 2006 IP