I have a pretty standard loop which outputs "Sorry, No Posts Found" when a search result comes up empty.
if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part ( 'templates/post', 'main' ); endwhile; else: echo 'Sorry, No Posts Found'; endif;
How can I show alternate posts below that message?
So if someone searches for "Tacos" and no posts are found, the results page would say:
Sorry, No Posts Found. But here's some posts about Pizza...