Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To generate thumbnail images for WordPress pages, enable featured-image support in the theme, register an image size that fits the page card or layout, request that size in the template, and regenerate existing image files if the size is new or changed. Then assign a featured image to each page in the editor.

“Thumbnail” can mean the featured image representing a page, or the smaller image file WordPress creates for a particular display size. Those are related, but setting a featured image and generating its size variants are separate steps.

1. Enable featured images for pages

WordPress calls the representative image for a page or post a “Featured Image” or “Post Thumbnail.” The theme must declare support before the featured-image control appears. Add this to the theme’s setup code, commonly in functions.php:

add_theme_support( 'post-thumbnails' );

WordPress documents that this support can also be scoped to particular post types. If featured images should be available only on pages, use the post-type-specific form:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
add_theme_support( 'post-thumbnails', array( 'page' ) );

See the WordPress Theme Handbook guide to Featured Images and Post Thumbnails. If you use a block theme, child theme, or a page-builder theme, follow its setup guidance and avoid editing a parent theme that an update may overwrite.

2. Register a thumbnail size that fits the layout

Register a named image size with add_image_size(). Choose dimensions and a crop based on the actual space where the image will appear; WordPress does not know whether your design needs a landscape card, a square tile, or a portrait crop.

add_image_size( 'page-card', 640, 400, true );

Here, page-card is the size name, 640 and 400 are the target width and height in pixels, and true asks WordPress to crop to that frame. With hard cropping enabled, the default crop is centered. You can specify a crop position with an array; for example, align the crop to the top center when the subject is near the top:

add_image_size( 'page-card', 640, 400, array( 'center', 'top' ) );

If you want the whole image preserved and scaled proportionally instead of cropped to a fixed frame, use false for the crop argument:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
add_image_size( 'page-card', 640, 400, false );

The resulting image may be smaller than one or both requested dimensions because proportional scaling preserves its aspect ratio. WordPress’s add_image_size() reference describes registration, crop options, and regeneration.

Use the default post-thumbnail size when appropriate

If the theme needs to set the default post-thumbnail dimensions rather than introduce a separate named size, use set_post_thumbnail_size() in the theme setup:

set_post_thumbnail_size( 640, 400, true );

For a custom page-card layout, a named size is clearer: it lets the template ask for page-card explicitly rather than relying on a default that may serve other theme areas.

3. Request the registered size in the page template

Registering a size does not make every template display it. The template must request the same name. Inside the page loop, output the custom size like this:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
if ( has_post_thumbnail() ) {
    the_post_thumbnail( 'page-card' );
}

Use the same registered name in both places: add_image_size( 'page-card', ... ) and the_post_thumbnail( 'page-card' ). WordPress also provides standard size names such as thumbnail, medium, medium_large, large, full, and post-thumbnail. If the theme or page builder already registers a size suitable for the layout, you may be able to request that instead of adding another one.

4. Assign a featured image to each page

  1. Open the page in the WordPress editor.
  2. In the editor sidebar, find the Featured image control.
  3. Choose an image from the Media Library or upload one, then save or update the page.
  4. Check the page or card layout to confirm that the selected crop shows the intended subject.

The featured image is the page’s representative image; choosing it does not by itself create a newly registered image size for older uploads.

If the Featured Image control is missing

  • Confirm the active theme enables post-thumbnails support for pages.
  • Check whether the theme or page builder uses a different editing workflow or has disabled the control.
  • Review the editor’s sidebar and screen options; the WordPress handbook notes that the control normally appears in the editor sidebar.

5. Regenerate image sizes for existing uploads

Adding or changing an image size affects image processing for uploads going forward. Existing Media Library files do not automatically acquire the new derivative just because the theme code changed. Regenerate those files after registering or changing a size.

Use WP-CLI

From the site environment, run:

wp media regenerate

Review the command’s available options in the WP-CLI media regenerate reference to select the appropriate scope. A regeneration can process many files; back up site media and consider the library’s size and hosting limits before a large run.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Use an admin plugin

If you do not have shell access, an admin plugin may provide a regeneration interface. The WordPress.org listing for Simple Image Sizes describes creating custom sizes and choosing sizes to regenerate under Settings → Media; its listing specifies PHP 8. The listing for reGenerate Thumbnails Advanced describes selective rebuilding, including featured images. Check each plugin’s current compatibility with your WordPress, PHP, and theme setup before using it, and back up media before bulk changes.

Which method should you use?

Approach Best fit What to check
Theme code You control the theme and want a stable named size and template output. Theme support, registered size, crop, and matching template request.
WP-CLI You can run commands in the site environment and need to regenerate existing derivatives. Command scope, media backup, hosting limits, and site size.
Admin plugin You need an interface in WordPress rather than shell access. Current compatibility, whether it can target the desired sizes or images, and backup before bulk work.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting

The page has no featured-image control

The active theme may not declare post-thumbnail support for pages. Add or enable add_theme_support( 'post-thumbnails' ) for the page post type, then check the editor sidebar and theme or page-builder settings.

The image appears, but not at the intended dimensions

Check that the template requests the registered size name, not a different standard size. Also confirm the requested dimensions and crop match the layout; proportional scaling with crop set to false does not force a fixed frame.

The custom size is missing for older images

The size registration does not rebuild existing image derivatives. Run a suitable regeneration process with WP-CLI or an admin plugin, after backing up the media library.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

The crop cuts off the important part of the image

Adjust the crop dimensions or position in add_image_size(). A centered hard crop may remove a subject near an edge; a top- or bottom-aligned crop can help when the composition warrants it.

A regeneration run is too large for the site environment

Bulk processing time and performance depend on the site’s media library and hosting setup. Use the regeneration tool’s scope controls where available, and consult the host’s resource limits before processing the whole library. The cited plugin listings do not establish performance for a specific site.

Or skip the browser setup

If what you need is a screenshot of a rendered WordPress page—not a generated WordPress media thumbnail—ScreenshotNeo can return an image or PDF from one request. It is a website screenshot API and MCP server for developers. Cookie banners are accepted and removed before capture, along with known newsletter popups and chat widgets; bot checks, blank pages, and failed loads are not billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000.

For example, save a screenshot of a published page as WebP:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/your-page/ -o shot.webp

See the ScreenshotNeo API documentation for request options. This captures the rendered page; it does not assign a featured image or create a WordPress media-library derivative. Learn more at ScreenshotNeo, or sign up for 1,000 free screenshots a month with no card.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.