Problem: I would like to add a front-end filter that allows Users to filter a View of parent posts by whether or not a child post exists.
Solution: There is no such filter built-in to Views, but you could use some custom code to achieve something similar. Create a custom field on the parent post and programmatically set the value of that post whenever child posts are created. Then filter based on that custom field.
Relevant Documentation:
https://toolset.com/forums/topic/filter-view-on-whether-child-posts-exist/
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 5 replies, has 2 voices.
Last updated by 5 years, 10 months ago.
Assisted by: Christian Cox.