Image caption meta data isn't displayed

Home Forums Reykjavik Image caption meta data isn't displayed

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21464

    wuesl
    Participant

    Image caption meta data isn't displayed

    Resolved

    Hey there! Have you noticed this support service is provided FREE of charge?
    If you like the speed and accuracy of resolutions, please consider supporting me with a small donation. Thank you

    Consider a donation →

    Hi Oliver,

    The next issue concerning images.

    It would also be very useful for us if the caption content from the meta data of the images would be displayed.

    Is there any possibility to do this?

    Thanks in advance
    Ulrich

    #21465

    Oliver Juhas
    Keymaster

    Hi Ulrich,

    WordPress does not display images with their caption by default. This is only possible in post/page content (in the past there was actually a special shortcode for this and nowadays it is treated by image block).

    If you want to display post featured image caption in intro section, please adapt the solution I’ve provided to you and add the the_post_thumbnail_caption() function there where needed. You will then most likely need to apply some custom CSS styles depending on the HTML you use.

    Best regards,

    Oliver Juhas
    WebMan Design

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.