if/Else have_posts Else fails to echo message to page July 16, 2022 by Tarik Billa Try $loop->have_posts() on if statement. See if it fixes the issue.