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

To use an image already in WordPress as a post’s featured image, open the post, use its Featured image control to select the image from the Media Library, choose Set featured image, then save or update the post. An image inserted into the post body is not automatically assigned as its featured image.

Set an existing attachment as the featured image

  1. Open the post you want to change in the WordPress editor.

  2. Find the Featured image control. Its location and wording can vary by editor and WordPress version; look in the editor sidebar or the relevant post settings.

  3. Open the control and choose the Media Library tab to browse images already uploaded to the site.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  4. Select the image you want, then confirm with Set featured image.

  5. Save or update the post. Reopen or preview it to verify that the chosen image appears in the editor’s Featured image control.

The Media Library lets you select previously uploaded items, but selecting an image there does not assign it to a post by itself. The featured-image control creates that post-level association. See the WordPress guide to inserting images into posts and pages and the Classic Editor guide.

Featured image versus an image in the post

A post can contain an image in its body without using that image as its featured image, and it can have a featured image that is not embedded in the body. If you want the same picture in both places, insert it into the post and assign it separately through the Featured image control.

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

If the Featured image control is missing

  • Look for a hidden panel. Depending on the editor, available panels or screen options may let you show the featured-image setting.

  • Check theme support for the post type. WordPress’s Theme Handbook explains that a theme can enable post thumbnails with add_theme_support( 'post-thumbnails' ) and can specify which post types support them. The control may not be available if support is not enabled for the content type you are editing. See the Featured Images & Post Thumbnails section of the Theme Handbook.

    Rank #4
    Sale
    1,000 Books to Read Before You Die: A Life-Changing List
    • Book - 1, 000 books to read before you die: a life-changing list (1000 before you die)
    • Language: english
    • Binding: hardcover

If the image is assigned but does not appear on the public page

Assignment and display are separate. A featured image can be selected in the editor while the site’s theme template does not render it, or renders it using a different image size or crop. Check the post in the editor first, then review the theme’s template behavior if the image is missing or looks different on the front end. The Theme Handbook covers featured-image support and display: Featured Images & Post Thumbnails.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Assign an existing attachment in PHP

If you are working in code and already have the IDs of the post and image attachment, use WordPress’s set_post_thumbnail() function:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Teacher Record Book
  • Keep track of everything from attendance to test scores
  • Spiral bound
  • Measures 8-1/2" x 11"
set_post_thumbnail( $post_id, $attachment_id );

The function takes a post ID (or WP_Post) and an attachment ID. The attachment must be usable as an image; WordPress checks for an image through wp_get_attachment_image(). Its return value is an integer or boolean. A false result can indicate failure or that the same value was already stored, so do not interpret every false as proof that a different image was assigned. Consult the WordPress Developer Resources reference for set_post_thumbnail().

When the image is already in the Media Library as an attachment, there is no need to create another attachment. wp_insert_attachment() is relevant to a separate workflow that creates an attachment from a file; its ID can then be passed to set_post_thumbnail(). See the WordPress reference for wp_insert_attachment().

Quick Recap

SaleBestseller No. 2
SaleBestseller No. 3
SaleBestseller No. 4
1,000 Books to Read Before You Die: A Life-Changing List
1,000 Books to Read Before You Die: A Life-Changing List
Book - 1, 000 books to read before you die: a life-changing list (1000 before you die); Language: english
$17.99
Bestseller No. 5
Teacher Record Book
Teacher Record Book
Keep track of everything from attendance to test scores; Spiral bound; Measures 8-1/2" x 11"
$4.89

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.