The above problem got fixed after regenerating the thumbnails and by using the following function.
function mytheme_image_size_names( $sizes ) {
$sizes['blog_body_img'] = __( 'Blog Body Image', 'isaumya' );
return $sizes;
}
add_filter( 'image_size_names_choose', 'mytheme_image_size_names', 11, 1 );
Related Posts:
- Images uploaded using media uploader are appearing upside down
- Disable auto-resizing of uploaded images, but only for certain filename
- Can’t generate thumbnail images
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- restrict uploaded image size and fixed image display size
- Zip all (original) images from media gallery
- How to overwrite image if it already exists – WordPress, Gravity form
- Add image size if page template
- Set JPEG compression for specific custom image sizes
- remove links from images using functions.php
- Issue with wp_get_attachment_image() and SVG file type
- How to change the markup WordPress inserts for post images
- Removing default image size list in Media Box
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- How to add classes to images based on their categories?
- How to create thumbnails for PDF uploads?
- Is it possible to maintain image aspect ratio when scaling images?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- Generating Responsive Background Image Sizes in PHP
- Why are image thumbnails cropped proportionally (not per dimensions)?
- How to save Uploaded image in custom option panel?
- Gallery images titles – get from post
- How to add a rel attribute to images that contains their categories?
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Display height and width properties with the_post_thumbnail() or related function
- Best way to programatically add “rel” attributes to page and post images
- Function to auto-set a featured image that is already in use
- Actions according to image type and size
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- Overwrite Parent Theme add_image_size in Child Theme
- How to add css class to image attached in all the posts?
- How can I enable uploading excel files?
- Add custom image size not working
- Count total number of images in post and echo results as number
- How can you limit srcset on a single type of page?
- how to add an image to the footer?
- Can I hide certain upload folders in media library [duplicate]
- Automatically wrap multiple images in div
- Understanding and altering the structure of posted images
- Overwriting Parent Theme’s Image Sizes
- Image rotation fails to regenerate custom sized thumbnail
- Featured Image Thumbnail Creation
- Twentyten Child Theme: header images display messed up in admin panel
- Display images that are not in the content
- When sale price is 0.00 show only regular price
- show first 3 thumbnails of posts in different sizes [closed]
- Getting custom image size URL in functions
- Set spesific size of featured images
- media resize/crop possibilities?
- Redirect to another page using contact form 7? [closed]
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Limit dimensions of “Full” size images
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- What are the meta fields for an attachment?
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- Add attribute only to first image of every post via functions.php
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Need to convert image url to a Base_64 data url with wordpress function..
- How to Add Shortcode to html img code?
- How to add a new image size and apply it to posts only?
- Function to insert missing image size attributes into img tags
- Problem in using Customizer
- Custom Image Size in Insert Media
- Convert all uploaded PNG files to PNG-8 format
- Using add_image_size in functions.php to get original uploaded file
- get_image_tag() html output : empty src attribute
- Need To Resize Images Exactly Without Losing Image Details
- Custom image sizes showing in Classic Editor only when upladed directly to post
- how can I change all wordpress media file url to custom cdn url?
- How to change images url in function.php?
- How to add HTML into error message
- Class parameter in get_avatar args doesn’t get added to output
- blank page with wp_get_attachment
- Images with overlay
- Featured image on archive page based on post type
- Serving cache from multiple domain names
- Printing medium sized image
- Why am I losing image quality on my site?
- Replace image attributes for lazyload plugin on image elements with specific class
- Disable links to images only if link is an image
- Restricted images only for logged user. (hidden url)
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Different body image backgrounds on different pages, posts and categories
- Update add_image_size
- Save the outputted image into the Media Library, with a different filename and extension
- Function the_content
- Figure inlined width trigger distorted layout
- Open image size links in a page instead of direct image link
- Dynamically adding Captions to images
- Full size image option removing problem
- Function to get thumbnail img source
- Allow authors to create article image
- Image width issue in IE [closed]
- Rename file after title , one small problem
- image_size with respect to aspect ratios
- How to resize image from import image url?
- How to add height and width dimensions automatically to archive descriptions
- Convert Image to Webp on upload without plugin