IF boolean: post or page?
-
Creating a custom sidebar page for a theme. I want to create an if statement, that will return whether an entry that is being displayed is a page or a post.
if its a post, it will use the WordPress widgets in the sidebar.
elseif its a page, it will use a customized sidebar.The question is: how do I correctly state the “IF post/page”?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘IF boolean: post or page?’ is closed to new replies.