[Resolved] Show one image from repeating image gallery
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that user had a RFG view that would display the images of a Repeatable field group. However the user only wanted this view to display 1 item.
Solution:
This can be done by using the limit attribute for the view. Example.
[wpv-view name="available-space-image-gallery" limit="1"]
This support ticket is created 6 years, 2 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.
When you are displaying the images using the [types field='image'][/field] you just need to use the index attribute. So if you want the field item then you would do [types field='image' index='0'][/field]
Not sure why a repeatable field group is used just for a single image. If you're going to just add other fields to the repeatable field group then thats fine.
However it will only have a single image field then I would recommend making the field itself repeatable. There should be an option on the image field that says "Allow for multiple instance.."