Skip Navigation

[Resolved] Display separate comments for each image in gallery?

This support ticket is created 2 years, 9 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.

Our next available supporter will start replying to tickets in about 1.17 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 2 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2297559

I am trying to figure out if this is possible - to have an image gallery and have the comments change each time you go to another image in the gallery - so each image in the gallery would have its own comments section.

I know that when you upload an image to WordPress it creates a page for that image where you can show comments, so I was thinking maybe there is a way to use a shortcode or something to add it to the description below the image, so the comments section for an image could then travel with and be made to appear with that image in a gallery. Adding a shortcode similar to wpv-post-body would work -- if there were such a thing as wpv-post-comments - but I don't think there is.

Do you have any ideas here, how I could use Toolset to create a gallery that has a different comment section for each image in the gallery - in other words, the comments section changes when the image changes in the gallery.

#2298467

Hello,

How do you setup the comments for each image?
With Toolset gallery block, you can use different image caption for each image, see our document:
https://toolset.com/course-lesson/dynamic-galleries-and-sliders-for-templates-displaying-repeating-image-fields/

#2299129

I am trying to figure out how to set up comments for images. I was thinking I could somehow use the comments section that wordpress creates for an image when you upload it into the media library and have that display on the page (beneath the image), so the comments section rotates with the image. I am wanting to allow people to be able to comment on individual images in the gallery, so each image has its own set of comments as someone moves from image to image. I know how to do captions, this is something else.

I always look to Toolset first to see if it can do the job, but not sure if this is the case here. Thanks.

#2299499

Toolset plugins do not support WordPress comments, you might consider to create a custom shortcode to list current media post's comments
https://developer.wordpress.org/reference/functions/get_comments/
https://developer.wordpress.org/reference/functions/add_shortcode
and put it into view's loop, and setup the post view as a sliders.
https://toolset.com/course-lesson/creating-sliders-with-dynamic-post-content/