conditional function if page exists
-
I’m VERY new at all of this. I would like to make a conditional statement in my sidebar that shows a piece of text if a page with a specified id is published (instead of draft or pending review)… so something like this:
<?php if(page_is_published('293')){ ?> <a href="/next-weeks-movies">Next Week's Videos</a> <?php }else{} ?>Can someone help me? Thank you!
– Ben
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘conditional function if page exists’ is closed to new replies.