Skip Navigation

[Resolved] Filtering form results by parent

This thread is resolved. Here is a description of the problem and solution.

Problem:
Filtering form results by parent

Solution:
To filter the view result by parent, You will require to add a "Post relataionship" query filter from your "Query Filter" section of your view/block view and set the option "The post where the view is sown".

Relevant Documentation:
=> https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

This support ticket is created 4 years, 5 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by richardB-16 4 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#1748149
Screenshot 2020-08-21 at 15.02.20.jpg

I've two post types, client and notes - I've created a relationship so I can add notes to each client. However I am seeing ALL notes from ALL clients on each single client page. Is there a way to filter them or pass an argument so I only see notes belonging to that client?

This is an example of the client page with the form
hidden link

#1749565

Just to clarify, the note form is working in the back end, I just need it to work like that on the front end too

#1753159

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean that you are using view to display the notes that belongs to specific single client - if yes:
- You will require to add a "Post relataionship" query filter from your "Query Filter" section of your view/block view and set the option "The post where the view is sown".

Please try to follow the steps given with the following Doc:
=> https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

#1753753

My issue is resolved now. Thank you!