Instead of manually adding a metabox, just add supports when you register the post type. (Since it is already registered, you may need to unregister_post_type() and then re-register it to make this change.)
For details – How come Featured Image isn’t showing up in my Custom Post Type?
Related Posts:
- Filter to remove image dimension attributes?
- Stop wordpress from hardcoding img width and height attributes
- WordPress adding scaled images that don’t exist (1536×1536 and 2048×2048)
- Download an image from a webpage to the default uploads folder
- Is there a hook which fires after all thumbnails are generated?
- Featured image shortcode
- How to find attachment by it’s name?
- get_the_post_thumbnail_url with an unregistered size
- Cropped featured image replaces original image in gallery
- Image Scaling using get_the_post_thumbnail issue in WordPress
- How to create thumbnails with a fixed width, so all of them will have the same width?
- Adding upload button in metabox
- Programatically creating image attachments from local URLs and setting featured image
- How can I add the “Use as featured image” to a custom metabox?
- Is it possible to prevent users from uploading small images?
- How to output placeholder image if no featured image set?
- Featured Images on Front Page
- Show prev and next post links for parent post of current image in attachment page?
- Setup A Default Featured Image
- Find posts without featured image? [duplicate]
- How do I add a featured image to a single post page?
- Add a featured image in my theme?
- Disable wordpress image sizes generation
- Featured Image .svg height and width 1px only
- How to check if user is uploading/setting an image as a featured image?
- Images are randomly deleted from server
- Frontend Post – Allow Only Image File Upload
- Images not working using Featured post
- Add instructions to featured image
- How do I get more image editing options in the admin?
- Thumbnails are bigger in size than the original image
- Lazyload post thumbnails
- Exclude featured image from gallery in wp-admin
- Featured images not displaying at full resolution
- Woocommerce featured image of page – not product
- Can’t seem to attach uploaded image to post and set it as thumbnail
- Big Image on Featured Post, Normal on Single Post
- offload media to external services [closed]
- Store Snapshot created via wordpress to use with lightbox
- How to stop thumbnail generation from some images and different size thumbnail generate
- Update old Post image metadata to ‘thumbnail’ wp_attached_file
- How to stop wordpress always displaying full-res images
- WP keeps looking up post thumbnail on https even though wp-config says http
- WordPress PNG compression issue
- How to replace images?
- Fixing image names for a site being restored
- Export xml use/import images from theme directory
- Generate images to be associated for tag and category?
- How do I get my main image to stretch the full length of the screen?
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Bulk-add featured images in posts with no featured image
- Should I not compress my jpeg files before uploading to avoid double compression?
- Is it possible to preserve original images in order to change image size later?
- Generating a certain sized thumbnail on the fly?
- add_image_size function not working
- Why doesn’t WordPress use the smaller sized image?
- How to set featured image from external url programmatically
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- Remove Additional image sizes created by theme
- link featured image to external link
- Use default image as var
- Image not showing using a custom function and get_post_meta
- Placing a featured image into header
- How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
- resize and crop thumbnail photos
- How do I display the featured image from an image gallery using a reference in code? (example within)
- Using different size thumbnails on different parts of my site… with functions.php?
- attach several images to post + gallery
- How to only show div of caption if caption exists on featured image
- WordPress Multisite: Images moved to /sites/1?
- How to echo images Urls from a wordpress post, that are relally in the post
- WordPress Responsive Image ( srcset ) not work properly
- How to Display Image Caption but Not Alt Text
- Get post thumbnail in specific size
- Images missing from Blog post page
- Why image Thumbnail url is not displaying with custom size?
- How to set a post featured image from an already made custom field
- Why does wp_get_attachment_image_src return the wrong size, when the correct size exists?
- stop wordpress from resizing feature gif images
- second featured post not displaying on page [closed]
- set_post_thumbnail_size only working for width
- Newly uploaded images are not updating in featured image
- Troubles with code for upload a image
- Url link to feature image in the portfolio [closed]
- problem with updating metabox of upload image
- How do I get resized thumbnails?
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Why is WordPress loading a different sized post thumbnail?
- Create post thumbnails from images stored outside of uploads directory
- Images will not attach to posts after site migration
- Using the on-board image editor for featured images: edits are not being used
- Tried everything but Facebook share button won’t load the post thumbnail
- has_post_thumbnail() Returns False on Scheduled Posts
- WP is showing wrong image dimensions
- Why some images are not allowed to be edited only for thumbnails?
- How can I use an image from an external source without uploading it to the media library
- How to add year and month path to old attachment images?
- How do I display a PDF thumbnail as a link to the PDF without uploading the image
- medium_large image size not displaying properly on the frontend?
- Featured Image add tab