Problem: I have created a Subscribers post type as a proxy for Users so I can create relationships between Users and Favorites (another custom post type). I would like to display a User's Favorites posts on their My Account page.
Solution: Use the legacy Views editor to create a View of Subscriber posts filtered by post author, where the post author is the same as the current logged-in User. Use the "list with separators" loop style and output only the post ID. Create another View of Favorites posts filtered by the Subscribers-Favorites post relationship, set by a shortcode argument "wpvrelatedto". Use the Loop Wizard to design the Favorites output. Nest the shortcode of the Subscribers View inside the wpvrelatedto shortcode argument of the Favorites View, for example:
[wpv-view name="your-favorites-view" wpvrelatedto="[wpv-view name='your-subscriber-view']"]
Relevant Documentation:
https://toolset.com/documentation/legacy-features/views-plugin/how-to-create-custom-searches-and-relationships-for-users/
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 3 years, 9 months ago.
Assisted by: Christian Cox.