How to show custum fields of the media library with linked featured image in blog archive pages?

Question

I have added some custom fields to the items in the media library to save copyright details with the images. Usually I can include this fields in the templates of child themes, but this seems to be not possible with parent themes, which uses classes and functions to generate the html for the featured image. Because of this, I thougt to acchieve this by using hooks / filters, but I´m not very familiar with this up to now.

I allready found the wp_get_attachment_image_attributes filter, but this seems to work only for featured images in single posts, not in blog archive pages.
Is there such a filter which I could use for archives?

0
Bernhard Henselmann 2 months 0 Answers 5 views 0

Leave an answer