Skip Navigation

[Resolved] Proximity filter a view of intermediate posts by parent CPT's location field

This support ticket is created 6 years, 4 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.

Our next available supporter will start replying to tickets in about 1.32 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Author
Posts
#957448

I am attempting to use the Maps proximity filter on a view that is displaying an intermediate post type where the location data is stored on the parent post type. Let me clarify:

Affiliates has a many-to-many relationship with Opportunities. Each affiliate has a Location (maps address) custom field. The filtered view needs to show every opportunity in every location, so needs to display the intermediate post type Affiliate-Opportunity. All of this is set up correctly and works great.

I need this view to be searchable by proximity based on Affiliate's Location field, which is the parent of the intermediate post type being rendered in the view. I have tried a few different solutions based on how to accomplish this with other fields and some other tech support tickets, but it doesn't seem like this Maps filter will work through a posts relationship. I may just be missing something, any assistance is greatly appreciated!

hidden link
demo, letmein

#957925

It is not yet possible to filter a View by Fields of a related post.
This is in our to do list, but there is no eta yet.

You would need to build the search by that field in a View where you query by the Post Type that the field is stored against.

Parent Data can only be filtered as a "Parent Post Tree" which means, by a relation.
But not by it's fields or other related data

I have added your voice to the internal request - we are working on this, but as said, there is no ETA yet.