Hello
I have 1 custom post type called "Enterprise", which is the basis of my application.
In addition to this custom post type, I have:
- City - > taxonomy
- Status - > taxonomy
- Type - > taxonomy
- Beach - > custom post type
Through the ACF (Advanced Custom Fields) plugin, I connect the enterprise with city, beach, status, and type, that is, each venture has a city, a type (home or land), has a status or sale and rent) and a beach.
In WordPress, is there any way to do a query for the following scenario:
-
I have 4 selects that are populated with the items quoted above. When I select a city for example, I need to search for the status, types and beaches that are related to that city.
-
If I select a beach, I need to find out what types and status are related to that beach.
The image below best shows what I need, popular the selects according to the selections in the other selects.
Suggest some other way to do what I need?
PS: Beach is a custom post type because it has a lot of information, external fields and its own page.