NO BUG: Image repeating itself when basic data with dynamic data for image caption is structured below the image

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

[Please describe this bug in as much detail as possible so we can replicate & debug this bug]

Hello Everyone,

I want to display image credits below the image. Currently, when caption is set for the image in Media Library, it is displayed over the image. My requirement is to display below the image preferably without coding as I am not a web developer.

Currently, my template looks like this:

Section

 Container 1

      Topic Heading



 Container 2   with query loop          row

       Container 3                     

             Image

             Basic Text -  "Image credit - {featured_image:caption}

       Container 4

             Post Title

             Post excerpt

             Metadata   ( Author name and Post date )

Another issue is the condition for displaying basic text - Dynamic data {featured_image:caption} is not empty
not working.

Browser : Chrome Version 148.0.7778.97

OS: Windows 11

URL: https://try.bricksbuilder.io/ta56ea3b/template/technology/?bricks=run

Video: https://recorder.jam.dev/LAQAGtQ ( https://jam.dev/c/cfd1e1da-dfcc-4e00-996e-b6a60511270b )

Best Regards,

Mr. D. Mallick

Hey @adminar,

the {featured_image:caption} is not supposed to work like this. It will just output the featured image.
What you can do is to use the following PHP to get the caption:

<?php
  echo wp_get_attachment_caption( get_post_thumbnail_id( $post_id ) )
  ?>

Best reagrds,
Matej