Conditional tag problem in Widget Logic (3 posts)

  1. AlternativePhotography
    Posted 6 years ago #

    Just started using Widget Logic (great BTW!)... have a minor problem. Would like to show a widget both on a page called events-listings and on posts appearing in category 65, and 68-72. I tried this:

    is_page('events-listings') || in_category(65, 72, 71, 70, 69, 68)
    and this:
    is_page('events-listings') || in_category(65,72,71,70,69,68)

    But none of it does the trick, it only shows on the events-listings page... any hints would be greatly appreiciated!

  2. K-Fella
    Posted 6 years ago #

    Make sure in_category() uses an array.


  3. chiara7
    Posted 6 years ago #

    I have the same problem, in_category does'nt work at all with WordPress3...

Topic Closed

This topic has been closed to new replies.

About this Topic