WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic not working with WP Conditional Tags. WHATS UP ? (2 posts)

  1. soam
    Member
    Posted 2 years ago #

    Hi..
    We are using Widget Logic on one of our client site and we want to show widgets on multiple specific pages.

    We tried,

    is_page('10') && is_page('13')

    and

    is_page( 10 ) && is_page( 13 )

    But nothing is working. Why is that ?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    brush up on your boolean algebra -

    this condition can never be true:
    is_page('10') && is_page('13')

    try to work with:
    is_page('10') || is_page('13')

    http://php.net/manual/en/language.operators.logical.php

Topic Closed

This topic has been closed to new replies.

About this Topic