• Resolved vitamineg

    (@vitamineg)


    Hello, trying to prevent a widget (using the widget logic plugin) from coming up on a particular category and 3 pages. In the widget logic box, i wrote:

    !is_category(’18’) || !is_page(array(‘448′,’441′,’408’))

    its not working so i must be doing something wrong.

    Anyone, any ideas?

    Paul

    cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael

    (@alchymyth)

    try && (AND)

    Thread Starter vitamineg

    (@vitamineg)

    try && (AND)

    getting closer…but no cigar.

    when i exchange || with &&, the is_category 18 doesn’t show the widget…perfect!

    BUT, the 3 is_pages still do.

    the code now looks like this:
    !is_category(’18’) && !is_page(array(‘448′,’441′,’408’))

    Michael

    (@alchymyth)

    other possibility:

    !( is_category('18') || is_page(array('448','441','408')) )

    Thread Starter vitamineg

    (@vitamineg)

    crappo, it was my bad…thanks alcymyth

    it was a post and therefore:

    !is_category(’18’) && !is_single(array(‘448′,’441′,’408’))

    is what i needed.

    cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conditional Tags’ is closed to new replies.