WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] if_home() (3 posts)

  1. Syni
    Member
    Posted 9 years ago #

    I'm having a brainfart here... how do you code... "if this is not the home page (if_home()), then do this"

  2. skippy
    Member
    Posted 9 years ago #

    <?php
    if (! is_home()) {
    // do stuff
    } else {
    // welcome home!
    }
    ?>

  3. Syni
    Member
    Posted 9 years ago #

    Thanks. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.