I’m trying to use widgetlogic to conditionally display menus on certain pages. Each menu uses a tag like is_page(array("Page Name", "Page Name 2" ...))
, and works perfectly until I try to change permalinks (whereupon all the menus disappear from their respective pages).
Am I doing something wrong? Is there a workaround?
Changing permalinks should have absolutely no affect whatsoever on the parameters passed to
is_page()
. Are you perhaps changing the Page Titles instead?Regardless, try passing the Page ID instead of the Page Title to your
is_page()
array.