Ready to get started?Download WordPress


conditional formatting (2 posts)

  1. degmsb
    Posted 3 years ago #

    I have the following code to process a command if the page is not 1955. I need to add another page to this if statement in addition to 1955.

    Can someone tell me how to do this?

    <?php if(!is_page('1955') ) : ?> do soething <?php endif; ?>

    Many thanks!

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    the codex knows:


    !is_page(array('1955', 'another page'));

Topic Closed

This topic has been closed to new replies.

About this Topic