Skip Navigation

[Resolved] Search post related information in search box

This support ticket is created 4 years, 10 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 3 voices.

Last updated by marcoN-4 4 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1549827

Tell us what you are trying to do?
Can I use search box in view to search post related info? For instance, I have property and owner information connected in many-to-many relationship. Can I search on property listing for owner information and that I get a list of properties as outcome?

#1550199

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nikola,

Thank you for getting n touch.

Unfortunately if your view is listing properties then you won't be able to search the properties with the information from an owner.

A view can only be searched by the attributes of the posts its listing.

Thanks,
Shane

#1559053

Hi,

is this true for archives too? I have two CPTs ("car models" / "car accessories") linked with a many-to-many relationship (by an Intermediary post type): can I search the "accessories" CPT archives by the "car models" fields?

if this is not possibile with an Intermediary post type is it possibile linking the two CPTs directly?

...finally, if is it not possible to query a CPT by the fields of a different related post (linked by a many-to-many) relationship, how can I take advantage of the possibility of build a many-to-many relationship between different CPTs?
Thanks

marco