How to check page STATUS?
-
Hello,
I want to display some text on my website, whenever the page with a specific name is published (i keep this page as a draft when i dont want to show this content)
How do i do that?
I thought this would do the trick;
<?php if(get_page_by_title('Storing')) : ?> <h3>test</h3> <?php endif;?>
But this shows the post under all circumstances, since it only seems to check if the page excists.
Any clues?
- The topic ‘How to check page STATUS?’ is closed to new replies.