@natesirrah,
I’m glad you’ve found this plugin useful! I’ve got some great news for you: I’ve updated the plugin to now allow you to optionally display image captions.
This is all you have to do:
[mpress_image_refresh attachment="5,7,9" caption="true"]
When you do this, you will get the image output in a <figure>
element and the caption in a <figcaption>
element just after the image markup.
Let me know what you think, or if you have any trouble with it.
This works beautifully, but one issue results — when I include the caption stipulation, my <p> tags no longer affect the output (I can’t center the shortcode). Any advice on how I would implement paragraph styling to the outputted captions?
Thanks so much!
-Nate
Update — I was able to use:
display: block
margin: auto
to float the picture (figure) in the middle… but similar CSS does not work for figure-caption. Any ideas?
Thanks!
UPDATE: I was able to completely resolve this by using text-align: center as the CSS styling for the figcap. Thank you again Micah!