Listings displayed other than "published"

Hi there! We are using a custom post status to enhance organizing a client’s listings. What is a code snippet we could add to ensure that only published listings are shown in any data queries on the website (related listings, search)? Any other listing post statuses should be hidden such as drafts and pending ones. I hope for this to be a rather small and simple adjustment.

Thank you so much!

Hi,

This is how it should work by default, only if the listing is published, it will appear as public. Listings with other statuses will be hidden and displayed only in the vendor’s account. If you need to show listings with custom status, you will need advanced customizations.

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