Skip Navigation

[Resolved] Backwards post relationship filter

This support ticket is created 5 years, 2 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Christian Cox 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1540953
Find my PM WF.png

Tell us what you are trying to do?
I have a situation where I have a property management site and they would like a simple dropdown select of property names that shows the person responsible for managing the property. I have a 1-to-many relationship built because the same person manages more than one building, but each building has only one

Is there any documentation that you are following?

Is there a similar example that we can see?
PNG uploaded as example wireframe

What is the link to your site?
hidden link

[happy to provide editor credentials]

#1541105

This is the search:

[wpv-filter-start hide="false"]
[wpv-filter-controls]
[wpv-control-post-relationship ancestors="property@team-member-wpm-property.child" url_param="wpv-relationship-filter"]
<div class="form-group">
<label for="wpv-relationship-filter">[wpml-string context="wpv-views"]WPM Properties[/wpml-string]</label>
[wpv-control-post-ancestor type="select" ancestor_type="property@team-member-wpm-property.child"]
</div>
<P>MANAGER: [wpv-post-title item="@team-member-wpm-property.parent"]</P>
[/wpv-control-post-relationship]
[/wpv-filter-controls]
[wpv-filter-end]

#1541263

Normally you'll put the Manager information in the loop of the View, not in the filters. I'll be glad to take a closer look if you provide login credentials.