Problem with featured image thumbnails
-
We have site with a lot of images. We have moved all images to S3 storage, with proper url replacement: add_filter(‘wp_get_attachment_url’, [$this, ‘replace_attachment_url_with_s3’], 1, 2);
We are using hootkit widgets.
Post List Widget is working OK! It show images replaced by replace_attachment_url_with_s3 filter, but Post Block widget, doesn’t trigger replace_attachment_url_with_s3 filter and it is working with “original” paths, which doesn’t exists (images are moved to s3).
<img width=”1024″ height=”683″ src=”https://S3STORAGE/17b17a87c4b144e087c2b2fbf4fe0b39:img/2025/01/DSC_0195_edited_Watermarked.jpg” class=”attachment-1536×1536 content-block-img skip-lazy wp-post-image” alt=”” itemscope=”” decoding=”async” srcset=”https://MAINDOMAIN.mk/wp-content/uploads/2025/01/DSC_0195_edited_Watermarked.jpg?_mod 1024w, https://MAINDOMAIN.mk/wp-content/uploads/2025/01/DSC_0195_edited_Watermarked-300×200.jpg?_mod 300w, https://MAINDOMAIN.mk/wp-content/uploads/2025/01/DSC_0195_edited_Watermarked-768×512.jpg?_mod 768w, https://MAINDOMAIN.mk/wp-content/uploads/2025/01/DSC_0195_edited_Watermarked-465×310.jpg?_mod 465w, https://MAINDOMAIN.mk/wp-content/uploads/2025/01/DSC_0195_edited_Watermarked-695×464.jpg?_mod 695w” sizes=”(max-width: 1024px) 100vw, 1024px” itemprop=”image”>
The topic ‘Problem with featured image thumbnails’ is closed to new replies.