Fetch linked images (from href)
-
Is it possible to also fetch and relink images from links in the content?
For example:
In the original post a image was inserted.
Wordpress adds a medium sized version in the post with link to the full size image.
Like so:
<a href="https://www.[originalwebsite].com/wp-content/uploads/[imagefolder]/[imagename].jpg"><img class="alignnone size-medium wp-image-382" src="https://www.[originalwebsite].com/wp-content/uploads/[imagefolder]/[imagename_fullsize].jpg"></a>
The image itself is fetched and the src-attribute updates perfectly.
The href of the link however still refers to the full sized image on the original website.What I would like to achieve is to also fetch the image from the href and update it’s value with the url of the fetched image.
- The topic ‘Fetch linked images (from href)’ is closed to new replies.