i create a Post Type and Taxonomie pattern
One to Many (Projects to Propertys)
.
#Post Type1 >> Projects
#Taxonomie >> Province
#Post Type2 >> Propertys
#Taxonomie >> Property-category
I want to create a search form as follows:
---------------------------------------------------------------------------
#Search form
--- Property Category --- <Select>
--- province --- <Select>
Search <Button>
--------------------------------------------------------------------------
.
I can't figure out how to create a search form and display search results. The relationship between Post Type and Taxonomie can be
Can you show some sample code to create such a form?
please help me
thank you
Hi,
Thank you for contacting us and I'd be happy to assist.
In the Toolset search form for views, the search fields can be used only for the taxonomies and custom fields that are directly attached to the post type. It is not possible to use the taxonomies and custom fields that are attached through the related posts.
One possible workaround, in this case, can be to show two different search forms, from two different views, side-by-side. One search form can be from the view set to show the "Properties" posts with the "Property Category" search filter and the other one can be from a view set to show the "Projects" posts with the "Province" search filter.
This way, the visitor will have the choice to either search by "Property Category" or by "Province".
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar