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
- Missing feature image link function
- Upload Multiple Files With media_handle_upload
- 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
- How to get the image EXIF date/time and use it for the WP post date/time
- Programmatically Set First Image as Featured
- 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?
- WP 4.4. responsive loads normal image after loading the responsive image
- How to register images uploaded via FTP in media library?
- How to add classes to images based on their categories?
- How to create thumbnails for PDF uploads?
- delete uploaded file
- How to reduce original image quality on upload?
- 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?
- Set image size on media and text block with a function
- 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?
- Max file size not updating
- Create thumbnail on PDF upload with Gravity Forms
- Gallery images titles – get from post
- Remove images from get_the_excerpt
- Use Exact Image Size using add_image_size
- 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
- Insert width & height attributes to all images displayed on each page
- Allowing SVG uploads in media uploader without plug-in
- Best way to programatically add “rel” attributes to page and post images
- Removing the first image in content
- 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?
- Convert all images to PNG on file upload
- how to add an image to the footer?
- wp_get_attachment_image function size argument not working if I also add a custom class
- Can I hide certain upload folders in media library [duplicate]
- WordPress upload_mimes not working for front-end uploads of 3D files
- 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
- Publish/Update post is changing image links from file url to post url
- Featured Image Thumbnail Creation
- Twentyten Child Theme: header images display messed up in admin panel
- Display images that are not in the content
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- When sale price is 0.00 show only regular price
- show first 3 thumbnails of posts in different sizes [closed]
- Remove after images
- 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
- How to hide image-url if no attachment?
- How to stop media_sideload_image from running when deleting a post?
- Possible to hook into Media Library preview File column and use a custom image?
- What are the meta fields for an attachment?
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- How to properly set custom logo size?
- 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
- Image Crop Not Working
- Use existing image sizes for WooCommerce
- Function that prevents users from uploading photos more photos
- Problem in using Customizer
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- Retrieve First Image Function
- Custom Image Size in Insert Media
- Featured Image keeps cropping
- Prevent creating multiple image resizes in twentytwelve template
- Conditional function for excluding first image from content, not working
- Convert all uploaded PNG files to PNG-8 format