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?
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.
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.
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.
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.
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.