Hidden Message appears if no posts published

I was wondering if it was possible to have a message appear if there are no posts published at that moment.

For example:

Client uses custom post types to enter available jobs on a page. If there are not jobs posted, can I display a message only when that happens?

I tried using the condition that the posts were in Draft and I put the custom post in draft to try it out but the message didn’t display. Maybe I missed something?

Thank you :blush:

Hi Melanie,

Thanks for reaching out.
You can create a Archive Layout using the Layout Builder and assign it to the specific Post Type and set a condition to show the particular message if the provider does not have any value.
I would suggest you go through the following articles, which might help you with this.


Thanks

Thank you :blush:

Hi Melanie,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.