Hi, I am trying to figure out how to show repeatable field groups from other custom post types.
Hi Stanley,
Thank you for waiting and sorry about the delay in getting back on this.
Based on what we've discussed in the chat, here are the simplified steps:
1. First, you'll create a one-to-many post-relationship between the "Careers" and "Offers" post types.
( ref: https://toolset.com/documentation/post-relationships/ )
Screenshot: hidden link
2. Next, you can create a post view named "View to show related offers" and select "Offers" post type in the "Content Selection"
( ref: https://toolset.com/documentation/getting-started-with-toolset/create-and-display-custom-lists-of-content/ )
Screenshot: hidden link
3. In the "Query Filter" section, you'll include a relationship filter, with the correct relationship name and "The post with ID set by the shortcode attribute: wpvrelatedto" option.
Screenshot: hidden link
4. Once this view is ready, you can place its shortcode in the single "Career" post's template, to show only the related offers:
[wpv-view name="view-to-show-related-careers-and-offers" wpvrelatedto="[wpv-post-id]"]
5. Likewise, you can also show the list of related offers, on any other page/post, passing the desired career post's ID:
[wpv-view name="view-to-show-related-careers-and-offers" wpvrelatedto="123"]
The above shortcode will show all the offers related to the career post with ID "123".
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
Thanks for this detailed instruction. I`ll give this a shot and I`ll let you know if I have any question.
You're very welcome Stanley.
Let me know how it goes and for a different question/concern, please start a new ticket.