Ideas for Arc XP

Add caption and credits to images in body/content elements

We have an issue with captions and credits missing in images inside the body of articles coming from feeds. Missing credits on photos is a business risk and could lead to economical demands that we need to avoid.

Clearly, this information is not added in the code for images:

https://github.com/WPMedia/feed-components/blob/b7b27574159f9fe8b95329eba8c599d8c4f67fe7/utils/content-elements/src/contentElements.js#L89

but seems to be added correctly for videos:
https://github.com/WPMedia/feed-components/blob/b7b27574159f9fe8b95329eba8c599d8c4f67fe7/utils/content-elements/src/contentElements.js#L242

Could you pleas add the figcaption with credits in a similar manner for images?

  • Arnstein Andreassen
  • Aug 11 2022
  • Future consideration
  • Attach files
  • Arnstein Andreassen commented
    August 26, 2022 13:47

    FYI, As this is urgent to us, we made a custom version of this that returns images within the body with the following structure:
    <figure>

    <img src="VRV5PI.jpg" alt="Photo of burning light" height="360" width="640"/>

    <figcaption>Light is burning for the caption issue<div class="photo_credits">The photographer/the affiliation</div>

    </figcaption>

    </figure>

  • Admin
    Jenae Cerovac commented
    August 16, 2022 20:08

    Hi Arnstein,

    Thank you for the idea. This makes sense and I will bring it to the team to estimate and get planned. Once I have a sense on timing, I will update the idea from "Future Consideration" to "Planned" status.


    Thanks,

    Jenae