Forums

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

  1. soam
    Member
    Posted 6 months 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
    Posted 6 months 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

Reply

You must log in to post.

About this Topic