WordPress Tutorials
How to Resize Images in WordPress: One, on Upload, or in Bulk
Resize one image in the media editor, cap every new upload with big_image_size_threshold, or shrink an existing library in bulk. Each method has a different catch.
Topic
Step-by-step guides for getting things done in WordPress.
WordPress Tutorials
Resize one image in the media editor, cap every new upload with big_image_size_threshold, or shrink an existing library in bulk. Each method has a different catch.
WordPress Tutorials
WordPress lazy-loads images natively since 5.5 and leaves the first few eager since 6.3. Most sites need no plugin — and the most common problem is lazy loading the one image that must load first.
WordPress Tutorials
There is no single correct featured image size: the theme decides how it is cropped and social networks decide how it is shared. 1200 × 675 satisfies both for most sites.
WordPress Tutorials
One upload becomes seven or more files. Here is every default WordPress image size, which ones Settings › Media controls, which ones it hides, and what themes add on top.
WordPress Tutorials
WordPress accepts WebP and AVIF uploads, but it does not convert your JPEGs or serve modern formats on its own. Here is which format to pick and the three ways to deliver it.
WordPress Tutorials
A slow WordPress database is almost never slow because of overhead in its tables. It is slow because of autoloaded options, runaway transients, bloated meta and missing object caching — measure, then fix those in order.
WordPress Tutorials
Excluding a page from the plugin cache is half the job. The host cache and the CDN keep their own copies, so a page you excluded once can still be served stale from two other places.
WordPress Tutorials
The PageSpeed warnings about unused JavaScript, unused CSS, cache policy and script execution each have a WordPress-specific cause, a code fix, a plugin fix and a way to break the site.
WordPress Tutorials
A failed Core Web Vitals assessment on WordPress is usually an LCP problem. Read the field report, split LCP into its four parts, and fix the part that is actually slow.
WooCommerce
A store has two halves: catalogue pages that can be cached like any site, and cart, checkout and account pages that never can. Speed each half with different tools.
WordPress Tutorials
Deferring a script with this filter detaches it from the dependency order WordPress maintains, and any inline script attached to it runs before it loads. Core has had a strategy argument since 6.3 that handles both; the filter remains for what the argument cannot express.
WordPress Tutorials
The filter runs before the insert, which is what makes it the right place to force a status or rewrite a title without a second save. It also hands you slashed data, and a string operation that ignores that corrupts every apostrophe.