WordPress change image link to attachment page on old posts – bulk change

Is there a way to change all old posts images links?

I have this blog, that have more than 2.000 posts and each post with at least 10 images. All the images are linked to file. Now I created an attachment page template for the images. The new posts are working well with default images linking to the attachment page.

Read More

But I would like to know if is it possible to bulk replace all image links from older posts (that are linking to file) to the attachment page without opening each post and edit each image.

I searched on the web and couldn’t find anything about replace the image link on old posts, I found only things about change the default image links on new posts created, which is working fine already on my blog.

Thanks in advance,

Related posts

Leave a Reply