Forums

[Plugin: Widget Logic] Weird problem logic wp 2.7 (2 posts)

  1. clivo
    Member
    Posted 10 months ago #

    I've set up 2 menu lists using multi menus; I've used widget logic to define the pages that each menu will appear as follows;

    is_page(array(3,80,82,83,84,86,87,89,90,91,92,94,203,205,219,221,225,223,244,248,275,299,315,317,319,320,321))
    is_page(array(16,17,85,254,274,276,278,281,283,284,286,287,288,289,290,291,292,293))

    Which works perfectly for every page except when page 85 is displayed then both menu's appear. I've created a new page and replaced 85 with for example 329 and this 329 causes both menus to appear as well, I've changed the page 3 times and it does the same. I have no other switches, I checked the slug to make sure this does not match the numbers. It does not make sense to me? Any ideas? Apart from this 1 minor challenge it a brilliant plugin. Is there a way of adding NOT page(85) to the first line?

  2. alanft
    Member
    Posted 10 months ago #

    [condition1] && !is_page(85)

    will add the condition AND is NOT page 85

    HTH. no idea why the problem is occurring in the first place though. sorry.

Reply

You must log in to post.

About this Topic