Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • As mentioned in previous comments, the first thing to check is that your WordPress core is up to date, along with all your plugins. Then, review your cache plugin settings, depending on which one you’re using, or try clearing the cache directly from your server.

    Hi! Luckily there’s a quick fix for this without having to edit each post manually.

    When you set a gallery to “Large” in Gutenberg, WordPress saves that preference directly in the block’s markup inside the database, like this:

    <!-- wp:gallery {"linkTo":"none","sizeSlug":"large"} -->

    So all you need is a find and replace in the database. For that I recommend the free plugin Better Search Replace. Once installed, go to Tools → Better Search Replace and set it up like this:

    • Search for: "sizeSlug":"large"
    • Replace with: "sizeSlug":"medium"
    • Table: wp_posts

    Before running it, check the “Run as dry run” option to see how many rows would be affected without actually changing anything. If everything looks right, run it for real.

    One thing though — make sure you back up your database first, either with UpdraftPlus or through your hosting panel. It’s a quick step and gives you peace of mind.

    And if you have command-line access to your server, you can also do it with WP-CLI:

    bash

    wp search-replace '"sizeSlug":"large"' '"sizeSlug":"medium"' wp_posts --dry-run

    Should be sorted in under 5 minutes. Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)