Skip Navigation

[Resolved] i create a Post Type and Taxonomie pattern One to Many (Projects to Propertys)

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Author
Posts
#2359151

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

#2359511

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