If Else Help (If no posts found on query posts)
Hi in my file I am rewinding posts and then querying the posts to find a specific post of some sort..
I was wondering can i write this in an if statement so that:
If the query finds a post then display this and that from the post (which i can currently do) however if a post isn’t found from the query then display some text of my choice ??
So i already know how to setup the query and rewind the posts I just need to know how to put it in an if statement so that if no posts are found i want to display some text?
- The topic ‘If Else Help (If no posts found on query posts)’ is closed to new replies.