• Resolved Rosa Parker

    (@rosa-bosma)


    Let’s say I wanted to hide a menu item on the pages ID 4, 19, 458 and 49. What would I fill in? Sorry if the answer to this is obvious – I feel like I’m overlooking something major. I didn’t find anything in the FAQ however.

    I tried if ( is_page(4) ) for just ID 4, but that didn’t work. I got an error.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shazdeh

    (@shazdeh)

    In the Visibility field you must input just the condition itself, without the if() wrapper. To check for “one of these pages” you could use this:

    
    is_page( array( 4, 19, 458, 49 ) )
    
    Thread Starter Rosa Parker

    (@rosa-bosma)

    Ok, I see, thanks for your quick response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using page IDs not working’ is closed to new replies.