For single attached image, display with caption
-
In my template, I’m adding shortcode based on how many images are attached to a post.
If > 1, then I want a lightbox gallery:
[mla_gallery main_size='full' tile_size='full' link='post' style='random']works (see, e.g., this page).
If = 1, I want just the regular image with caption. Not sure how to do this, I tried triggering the display of the caption by adding a value for
captiontagand formla_caption. As you can see on this page, I can’t get the caption to show up. Here’s what I’m using:[mla_gallery main_size='full' tile_size='full' link='post' style='random' captiontag='figure' mla_caption='{+title+}, {+caption+}, {+description+}']It’s just the regular .photonic-wp-stream #photonic-wp-stream-1-container divs. No caption.
Not sure if it matters, but (as you see) I’m using Media Library Assistant.
Is there a way I can achieve my goal in my template code?
Or perhaps this is a “Media Library Assistant” question, or a question about WordPress core gallery? Any direction is welcome.
Thanks!
(Note: My site is under development, so once I get an answer, it’ll be password protected again.)
The page I need help with: [log in to see the link]
The topic ‘For single attached image, display with caption’ is closed to new replies.