[Resolved] is_page not to use in loop, alternaltive for it???
I’ve been trying to figure something out, I usually use is_page() but I notice it doesn’t work in the loop. I have a website that’s displaying all pages content on the home page as I want my site to be a One page site with smooth scrolling.
Cool now the issue is. I have a hidden content in the loop where I only want it to display just under the About Page. I usually use is_page(‘5’) but it doesn’t work in the loop. Is there another method similar to is_page() where I can say:
“If page_id = 5 then display this hidden content endif.
- The topic ‘[Resolved] is_page not to use in loop, alternaltive for it???’ is closed to new replies.