Is it possible to have a message appear on the front end when the query loop has no matching posts?
And can that message be customised?
I have a site that has a CPT of “Vacancies” and it leaves a big blank space on the front end if there are no actual vacancy posts published.
It would be better to have a line of text to the effect of “There are currently no vacancies available. Please come back soon and visit us again.”
Maybe there’s a code snippet that would make this happen?