-
Notifications
You must be signed in to change notification settings - Fork 158
Description
Describe your question
I am using a plugin (Getwid Image slider) to add an image slider block in the post content. I have image and gallery blocks as well in the post content. When the post is distributed from Site A to Site B, the image, gallery and slider blocks are transferred fine. However, on the distributed site(Site B) the image URLs in the slider block is still pointing to Site A image URL resulting in a broken image.
Note: The images are hosted in AWS. So when then distributed post is pointing to image URL in Site A, it display a broken image. However, for image and gallery blocks the images are downloaded corrected and added to the AWS of the distributed site (Site B).
I tried the below filter to add the block name and attribute containing the image ids to consider as a media block but that didn't make any difference.
function custom_parse_media_blocks( $media_blocks ) {
$media_blocks['getwid/images-slider'] = 'ids';
return $media_blocks;
}
add_filter( 'dt_parse_media_blocks', 'custom_parse_media_blocks' );
Am I using the wrong filter? Any help would be really appreciated.
Code of Conduct
- I agree to follow this project's Code of Conduct