• Resolved tilr

    (@tilr)


    The plugin works in principle (before, after, overlay). But my preferred method to include the credits to the image caption does not work. In the plugin settings page it says “(images need to be enclosed in [caption] shortcode)”. The (normal) captions are present below my images in the block editor, in preview and published pages. But no credits appear. Do I have to add a caption shortcode explicitly in Gutenberg (how?)? Can you help me with that?

    (In the past (before Gutenberg) the plugin worked in the captions and still does in the old posts. But when I open them I cannot edit the images in the new Gutenberg editor.)

    (I use wordpress 5.5.1 and better image plugin 2.0.3, theme twentyseventeen.)

    • This topic was modified 4 years, 4 months ago by tilr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Claude Vedovini

    (@cvedovini)

    Gutenberg doesn’t use the [caption] shortcode when you use the image block to add images, you need to use the shortcode block with the [caption] shortcode: https://codex.www.ads-software.com/Caption_Shortcode

    Thread Starter tilr

    (@tilr)

    Thank you for the quick answer. Sounds easy, but I don’t understand how to follow your advice. Maybe I am blind. When I add an image block, a kind of caption is automatically created by gutenberg, filled with the caption field from the media database. When I manually add a shortcode block instead, where I might use the [caption] shortcode, I cannot add an image inside this block.

    Plugin Author Claude Vedovini

    (@cvedovini)

    you need to type the shortcode in manually, the documentation is in the link I provided

    Thread Starter tilr

    (@tilr)

    Thank you. Of course I can add a “shortcode” block in the Gutenberg editor and type in something like [caption]text[/caption]. But how do I get this linked to the image? Gutenberg editor does not provide a way to insert an image inside the caption shortcode.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Credits in caption not working in Gutenberg editor’ is closed to new replies.