Only show last uploaded image
Hi,
I am using the Product Gallery to show uploaded images on my website.
But I only want to show the last uploaded image. Is this possible?
I have looked at adding the upload date or creation date to on image and then sorting them like that, but I have not found a way to do this.
How can I only show the last uploaded image?
0
-
Hi,
Product gallery widget shows images based on tags or public_id. You can sort the resources by creation_date and only pass the latest image as the public_id to the widget. You can also add the creation date as a tag and access the image based on the creation_date tag.
Thanks,
Aditi0
Post is closed for comments.
Comments
1 comment