All Topics
Filter dropdown options by post status
Hi.
I want to filter the available dropdown options for a meta field ONLY to the available values for custom posts that have a specific post status.
At the moment, all values for all the different post status are show. How can I exclude the values that come from posts with a specific status?
EXAMPLE:
Custom Post 1 – Post Status “Sold” – Brand: VW
Custom Post 2 – Post Status “Sold” – Brand: BWM
Custom Post 4 – Post Status “Sold” – Brand: Audi
Custom Post 5 – Post Status “Open” – Brand: Ford
Custom Post 6 – Post Status “Open” – Brand: Tesla
Normally all 5 Car Brands are shown in the filter, but I want to exclude all the “Sold” ones in the filter list.
How do I do it?
– Daniel
You must be logged in to reply to this topic.