WordPress.org

Ready to get started?Download WordPress

Forums

After thumbmail regenerate (bulk), how to regenerate tags in post (3 posts)

  1. nicksmarto
    Member
    Posted 3 months ago #

    Friends,

    I have changed themes recently, and after changing the Image Size setting in the Settings > Media page, I have used the Regenerate Thumbnails (v2.2.4) plugin to regenerate the images. This worked fine, and I've confirmed the new images exist.

    The problem I have is that all of the posts (and I have hundreds) still have their original HTML: (example)

    <a href="http://www.myblog.com/wp-content/uploads/2013/04/germany01.jpg"><img class="size-large wp-image-3310 aligncenter" src="http://www.myblog.com/wp-content/uploads/2013/04/germany01-600x450.jpg" alt="germany01" width="600" height="450" />

    In this case, 600px is the old size, and the new 700px images aren't referenced in the post.

    I can't seem to find a plugin to bulk regenerate the code for these images, and it'd be a nightmare to go do all of this by hand for hundreds of posts.

    There doesn't seem to be a reliable Search and Replace strategy either, as there are many different aspect ratios and too much room for error.

    Anyone have a great idea?

  2. EMG
    Forum Volunteer
    Posted 3 months ago #

    Hi there! :)

    By any chance have you looked into something like this?

    https://wordpress.org/plugins/velvet-blues-update-urls/

    It is supposed to help update your URLs after a settings change (usually site migration or some such) that affects the URLs.

    Disclaimer: I haven't used it personally myself but but the Reviews are good and I've heard of people on the forums who have used the plugin successfully.

  3. nicksmarto
    Member
    Posted 3 months ago #

    Thanks EMG. Unfortunately, the URL's are image specific, there is no uniform pattern to do any sort of search and replace option. Thanks for the idea, though!

Reply

You must log in to post.

About this Topic