Skip Navigation

[Resolved] Showing repeatable field groups from related posts

This support ticket is created 4 years, 8 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

Author
Posts
#1572891

Hi, I am trying to figure out how to show repeatable field groups from other custom post types.

#1576507

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

#1580591

Thanks for this detailed instruction. I`ll give this a shot and I`ll let you know if I have any question.

#1581269

You're very welcome Stanley.

Let me know how it goes and for a different question/concern, please start a new ticket.