After a thorough inspection of the database, i saw that the post_type for the images had changed to “post” instead of “attachment“.
The solution Update Post mime type from “post_status = inherit” sql:
// Mime type – img/jpeg
UPDATE wp_posts SET post_type = ‘attachment’ WHERE wp_posts.post_status = ‘inherit’ and wp_posts.post_mime_type = ‘image/jpeg’;
// Mime type – img/png
UPDATE wp_posts SET post_type = ‘attachment’ WHERE wp_posts.post_status = ‘inherit’ and wp_posts.post_mime_type = ‘image/png’;
// Mime type – img/webp
UPDATE wp_posts SET post_type = ‘attachment’ WHERE wp_posts.post_status = ‘inherit’ and wp_posts.post_mime_type = ‘image/webp’;
// Mime type – video/mp4
UPDATE wp_posts SET post_type = ‘attachment’ WHERE wp_posts.post_status = ‘inherit’ and wp_posts.post_mime_type = ‘video/mp4’;
Related Posts:
- How to Fix HTTP Error When Uploading Images?
- Minimum Dimensions Requirement for Featured Image?
- How to get featured post title & image using JSON API?
- Add Image Dimensions to Media Library Tab on Media Upoader
- Custom post type thumbnail / Media Library WP_DEBUG notice [closed]
- Use wp_remote_get to add image to media library
- Replicate featured image functionality
- Need clear explanation about medias/files/attchments
- How to replace featured image upload option with the post media image option
- media-library: how to insert thumbnails with a fixed width, regardless of landscape/portrait orientation
- How to bring files from the upload directory to the media gallery?
- WordPress image crop probems
- Images uploaded on frontend display correctly but not in media editor.
- Thumbnail (featured image) and Media Library cleanup queries help needed
- Set featured image from auto generated video thumbnail url php
- After migrating media library is not showing thumbnails
- Is there a way to force Featured image to show as attachement?
- How to modify Media Library images DPI [ image quality down to make small in size ] [closed]
- How do I get image url only on the_post_thumbnail
- Get Featured Image via direct sql query
- wp_get_attachment_image_src always returns full-sized image
- Use thumbnail image using url of that image
- Skip posts without a thumbnail in loop
- get_pages – Display child then grandchild pages
- How to replace the_post_thumbnail template tag and show the first inside the post image instead
- Resizing Images to lower Disk Space Using Plugins
- Set (featured) thumbnail for post?
- How to make thumbnail images click into blog posts
- display WP image posts in Bootstrap 4 modal
- Customising the size of images served in Visual Composer elements [closed]
- How to scale up post thumbnails/featured image?
- Get Ancestor featured image
- Upload 3 different featured image sizes to WordPress
- Change size of featured image in Edit Post screen
- Thumbnail and Featured Image With Fixed Sizes?
- the_post_thumbnail ignores size parameter
- Featured image always rendered with 198px of height?
- Is there a way to change a post’s thumbnail image(s)?
- Confused with the loop and repeating things
- WordPress thumbnail settings change
- Using concatenate with WordPress Thumbnail
- Looking for Add Title Tag on Feature Images on WP
- how to use the new image size
- Is it possible to nest get_previous_post()?
- Notice: Trying to get property of non-object when trying to get thumbnail URL
- Output post thumbnail (add class)
- How to set an equal image size for a Fallback Image as used for the Featured Image(dynamicly)
- How can I see where in my themes and plugins certain image sizes are used?
- How do I remove featured images and captions from a wordpress RSS feed?
- attachment media-template data model (data.size.url)
- wp_get_attachment_image_src match smallest edge
- Can’t Set Featured Image [closed]
- Resize post thumbnail produces horrible image quality..Any help?
- Post thumbnail outside of loop
- query_posts adding two “post-entry” divs
- Display a thumbnail outside of the loop for a page
- How to use get_the_title with text on the ‘alt’ of the_thumbnail array?
- remove_image_size doesn’t seem to be working
- Get Featured Image Outside Loop Not Working
- Responsive scaling of image for the_post_thumbnail() [closed]
- images not showing despite using add_theme_support(‘post-thumbnails’);
- post thumbnail: increase dimension if smaller than… Possible?
- Displaying caption with featured image
- add_theme_support post-thumbnails not working
- Trying to show WordPress category query result as background image
- How risize a thumbnail?
- custom thumbnail image size not working
- Comparison Operators not working for conditional author post thumbnails
- Assign SQL ‘post_thumbnail’ column as featured image
- Default thumb – how to set it
- How to update custom image sizes?
- featured images twenty eleven theme
- the_post_thumbnail not resizing
- Picture inserted in the post not showing in “Gallery”
- featured image is not showing
- How to change the format of thumbnails into wordpress theme?
- How to calculate the sum of all featured thumbnail height on WordPress?
- How to create thumbnails programmatically?
- Usage of add_image_size (for featured image)
- Featured image: Dynamic image sizes when enlarged with javascript
- Smaller Size for featured images
- Featured image doesn’t appear in Blog index
- Remove Featured Image based on Date
- How to show only 2nd featured img on home/blog
- Echo recent posts each with its own respective featured image
- How to get post thumbnail to be equal to set media size
- Add notice to add image popup
- Mass/Bulk assign featured images to posts
- setting featured image is not working while running script in background, works when running that script from browser
- How to modify responsive images in post thumbnails
- get_the_post_thumbnail() – Invalid argument supplied for foreach() in /wp-includes/post-thumbnail-template.php on line 64
- Different thumbnail size than actual picture in post
- How to get the featured image inside of a single-.php template?
- Where is the template from the_post_thumbnail()?
- Get Post Thumbnail Outside of Loop
- Theme:Twenty Fourteen, How to remove featured image on single post page for particular category
- Question regarding the file path for media_sideload_image and wp_upload_dir()
- Delete post media except featured image
- Images thumbnail not cropping square
- wp media regenerate says “no regeneration needed” whe that’s no the case