[Resolved] A post relationship filter in a View isn’t producing the right results
This thread is resolved. Here is a description of the problem and solution.
Problem:
A View contains a filter to only show related posts, but isn't working correctly.
Solution:
The filter being used was to show posts that are related to the post where this View is shown, but should have use show posts that are related to the current post in the Loop.
This support ticket is created 6 years, 6 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.
We have a view that displays search results of different courses: hidden link. Within each content template (for the search results), we have a list of mutliple elements. The first one should display the next date the course takes place. Those dates are set as a child post within each course (one-to-many). In the layout of each course, I display this date with a view that uses a query to filter out the next date. However, the same view doesn't work in the search when integrated into the content template, it displays "no items found".
I'm looking for a way to have a content template to not only display fields from a post but also search trough it's child posts and filter them with "date" is "unsigned" "greater than or equal NOW()" and only show 1 entry.