WordPress.org

Ready to get started?Download WordPress

Forums

How to use If Not statement (4 posts)

  1. endlessstudio
    Member
    Posted 1 year ago #

    I basically want to do something like this.

    If post is not '111' then
    <div></div>

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

  3. ubaidullahbutt
    Member
    Posted 1 year ago #

    Now question where you want to use IF Else, on blog page or post detail page.?

  4. endlessstudio
    Member
    Posted 1 year ago #

    Thanks.
    I got it.

    <?php if(!is_page(12)) { ?>
    <div>...</div>
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags