Using page IDs not working
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using page IDs not working’ is closed to new replies.