I have a post type called "ships". The post author can also publish stories about their journeys, which is a custom field (repeatable group). Those stories are published in the single ship template.
But now, the clients would like to publish the latests five stories (from all users) on a seperate page. Is that possible?
Hello. Thank you for contacting the Toolset support.
Sorry but I still do not understand the data structure you have.
You have post type "ships" and you have repeatable field group assigned to this post type?
Can you please share bit more details about the data structure you have and what exactly you want to display on what post/page?
Maybe you can send me admin access details with all above information.
*** 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.
I've added the view's shortcode to above page:
=> hidden link
[wpv-view name="display-rfg-top5-posts"]
I've created the following view and set this view to query your desired Repeating field group and also set the limit to display 5 posts order by post date DESC:
- hidden link
You can adjust the view's loop output as per your requirement to display any additional custom fields or anything else.
With block editor, you can create block view with repeating field group on single post content template, that is why I used the legacy view. You can build the loop output using the block view.