Skip Navigation

[Resolved] Displaying repeatable field group issue

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 6 replies, has 2 voices.

Last updated by Timothy 8 months ago.

Assisted by: Minesh.

Author
Posts
#2688599

I have a cpt "Today's Links" and repeatable field group to add video titles and urls to output youtube embedded videos. I am displaying this on a Page. I'm using a legacy view to display this "Repeatable field groups" and in teh Query Filter I'm using the "Filter by post relationship" but I can't find the setting that will display the most recent "Today's Links" cpt's repeatable field group. So now I have to set it to a specific post, like this:

hidden link

So my question is how can I set this so it automatically displays the most recent "Today's Links" cpt?

#2688756

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

As I understand - you want to display the repeating field group items as per the order you have on your single cpt "Today's Links" edit page. Is that correct? If yes:
- You should select the filter option "The post where this view is shown"

And navigate to "Ordering" section and select the option "Field - toolset-post-sort-order" and set the order to Ascending.

More info:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups-in-custom-order

#2688757

No, actually I want to show this view on a single static page, not on the single cpt. And I want to only show the most recent cpt's repeatable field group.

Tim

#2688760

Minesh
Supporter

Languages: English (English )

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

ok - it you do not want to display the related repeating field group item belongs to single post then you should remove the query filter for Filter by post relationship".

Set your view to display your repeating field group from content selection section (make sure you should not select post type "Today's Links") and from ordering section select post date order by Desc.

#2688778

No, I do want to display the repeating field group for a single cpt (the most recent cpt), but I want to display this on a static Page.

Tim

#2688780

Minesh
Supporter

Languages: English (English )

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

Can you please share problem URL and tell me what you want to display where exactly and why. Once I see your structure I will be able to guide you in the right direction.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2689154

Actually I think I may have figured out the solution. By using a parent view to display the cpt, setting it to Display 1 item, and in this view's loop placing the other view that contains the repeatable field group, and in that view setting the Query filter's " Filter by post relationship or repeatable fields group owner" to "The current post in the loop".

I need to do some more testing but this looks like the solution.

#2689157

Yes, this solution works. Thank you.