wp_get_attachment_image_attributes not working for me

Okay, the problem was in my interpretation of the filter. I was under the impression that this filter could be used for all images in a post, as they’re all considered attachments in the db (post type – attachment), but it’s actually reserved for the Featured Image/Post Thumbnail. Nowhere in the examples I looked through was this explicitly mentioned…

My mistake, but I wish the info online was more clear about this and the name of the filter had something to do with post_thumbnail or featured image.

Leave a Comment