Forums

What's the opposite of..? (5 posts)

  1. pezastic
    Member
    Posted 7 years ago #

    I want to have something show only on the index.php page. So, I guess I need to know what is the opposite of:
    <?php if ($single) { ?>

  2. pezastic
    Member
    Posted 7 years ago #

    Nevermind, I found it:

    <?php if (!$single) { ?>
    Stuff you want only on a non-single pages
    <?php } ?>

  3. NuclearMoose
    Member
    Posted 7 years ago #

    Cool! Nothing like being able to answer your own support questions! You're becoming an expert, pez!

  4. OperaManiac
    Member
    Posted 7 years ago #

    happens all the time moose... they just get excited at the prospect of asking a question... then they get irritated and find the answer themselves. :D

  5. pezastic
    Member
    Posted 7 years ago #

    Ah, but such is not entirely the case with me. I spent half a day searching for the answer via the search mechanism of this forum and the wiki. I had forgotten what I read last week about a google search and happened upon it in my search for the answer to my question. There is nothing better than google to search these forums:
    "searchword site:wordpress.org" seems to do the trick most of the time

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.