The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

conditional formatting (2 posts)

  1. degmsb
    Posted 5 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. Michael
    Forum Moderator
    Posted 5 years ago #

    the codex knows:


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

Topic Closed

This topic has been closed to new replies.

About this Topic