Skip Navigation

[Resolved] Search with related CPT

This support ticket is created 4 years, 1 month 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)

This topic contains 3 replies, has 3 voices.

Last updated by Shane 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1842937

Hi,
I have a one to many relationship "Customers" to "Inquiries".
Every Inquiry has a max-price and max-size fields.

Is it possible to create a Views to query all Customers which have at least one Inquiry matching the URL parameters? Ex.

mydomain.com/myviewpage/?max-price=200000&max-size=100

Thanks

#1843141

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You want to filter Customers, by fields belonging to Inquiries.

Unfortunately that's not possible.

It's on our to-do list, but isn't currently scheduled.

I'm adding this thread to our internal ticket about the feature which will help when it comes to prioritising development.

#1843277

Any workaround?
Thanks

#1843817

Shane
Supporter

Languages: English (English )

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

Hello,

My best advice on this one is to wait for the update. However if you want a workaround and your view is only going to filter based on the Inquiries then you can use a view that displays inquires but pull the data for the customer using the item attribute.

You can also do a nested view setup where your customer view is a child view of Inquiries but in reality your filters will be filtering the Inquires view, however since the Customer's view is dependent on what is being displayed by the Inquires view, then the customer's view will filter as well.

Thanks,
Shane