Media snippets

Uploads, image sizes, compression and attachment pages, handled safely.

Showing 20 snippets

Media PHP Convert JPEG and PNG Uploads to WebP Make WordPress save the resized versions of uploaded JPEG and PNG images as WebP, which is usually 25–35% smaller. Intermediate WP 7.1 Media PHP Add Your Own Image Size to the Editor Register a custom image size, like a 1200×630 social card, and make it selectable in the Image block's Resolution menu. Beginner WP 7.1 Media PHP Keep All Uploads in One Folder Stop WordPress sorting uploads into year and month folders, so new files go straight into /wp-content/uploads/. Beginner WP 7.1 Media PHP Add File Size and Dimensions Columns to the Media Library Show each file's size and image dimensions in the Media Library list view, so you can spot oversized uploads at a glance. Beginner WP 7.1 Media PHP Reject Images That Are Too Small or Too Large Block image uploads below 600 px wide or above 6000 px on either side, with a clear message explaining why. Intermediate WP 7.1 Media PHP Allow Extra File Types in the Media Library Let administrators upload file types WordPress blocks by default, such as subtitle files (.vtt), JSON or 3D models (.glb). Intermediate WP 7.1
Want it without code?Our plugins do the heavy lifting, with settings, updates and support.
Browse plugins
Media PHP Let Authors See Only Their Own Media Show authors and contributors only the files they uploaded, in both the Media Library and the "Add media" picker. Intermediate WP 7.1 Media PHP Stop Images Linking to the File by Default Make new images in posts have no link by default, instead of linking to the full-size file or attachment page. Beginner WP 7.1 Media PHP Add a Photo Credit Field to Media Add a "Credit" field to images in the Media Library, and show it under featured images and in image captions. Intermediate WP 7.1 Media PHP Turn On Lightbox for All Images Make every Image block open in a full-screen lightbox when clicked, using WordPress's built-in "Expand on click" feature. Beginner WP 7.1 Media PHP Serve Media Files From a CDN Domain Rewrite image and file URLs from your uploads folder to a CDN or media subdomain, such as cdn.example.com. Intermediate WP 7.1 Media PHP Remove Unused Generated Image Sizes Stop WordPress from generating image size variants that your theme and plugins never use, reducing disk usage and speeding up media uploads. Beginner WP 7.1 Media PHP Show Images Missing Alt Text in the Media Library Add an "Alt text" column to the Media Library list that flags images with no alt text, and a filter to show only those. Beginner WP 7.1 Media PHP Allow Safe SVG Uploads for Admins Let administrators upload SVG files, with each file rebuilt from an allowlist so scripts, event handlers and external links never get through. Advanced WP 7.1 Media PHP Clean Up File Names on Upload Turn uploaded file names like "Café Menu FINAL (2).JPG" into clean, lowercase, URL-safe names like "cafe-menu-final-2.jpg". Beginner WP 7.1 Media PHP Set a Smaller Upload Size Limit for Some Roles Limit authors and contributors to 2 MB uploads while administrators keep the server's full limit. Beginner WP 7.1 Media PHP Change the Size WordPress Scales Large Images To Change the 2560 px limit WordPress uses to scale down huge uploaded photos, for example to 1920 px. Beginner WP 7.1 Media PHP Disable WordPress Attachment Pages Redirect standalone attachment pages to their parent post or the homepage to eliminate thin content pages that waste crawl budget and dilute SEO. Beginner WP 7.1 Media PHP Set JPEG Compression Quality Override WordPress's default JPEG quality setting of 82 to control the file size and visual quality balance for all uploaded and regenerated images. Beginner WP 7.1 Media PHP Auto-Set Image Alt Text from Filename on Upload Automatically populate the alt text field for newly uploaded images using a cleaned-up version of the filename, so images are never missing alt text by default. Beginner WP 7.1

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only