You also need to add it to image size chooser.You can do so using the filter image_size_names_choose.
add_filter( 'image_size_names_choose', 'wpse_228675_custom_size' );
function wpse_228675_custom_size( $sizes ) {
return array_merge( $sizes, array(
'image_horizontal' => __('Custom image size'),
) );
}
Related Posts:
- How to change image type for specific size?
- Separate Media Library for each user
- Maintaining image color and quality when uploading using custom sizes
- add_image_size() zoom-crop
- Bulk edit wordpress images alt and title attributes
- Upload Image Not accessible
- Which are precisely the predefined image sizes?
- Caption in Page adding unwanted 10px to width
- Adjust image caption within visal editor
- Change Image URL to a CDN
- How to add a media with PHP
- Responsive Images – Add srcset attributes to custom Images Function
- Getting custom size image URL
- Get original image from thumbnail URL
- Loss of sharpness in jpg imported as header in twentyeleven
- Getting alt text of featured image
- Bulk image rotation
- Can I the caption shortcode to set caption to a data attribute, and with the image’s alignment intact?
- How to resolve – IE 6 ignores img “width” properties
- WordPress is stripping the Alt tag’s quote marks from images where Alt is not set, but leaving the word ‘alt’ creating problems for ADA compliance
- WordPress reduces the full size image and uses it as the original
- Show taxonomy list with taxonomy images ( SOLVED)
- Is there a way to delete images from WordPress media library programmatically?
- get the image of the post
- Is There A Way Of Using the_post_thumbnail() to Pull In A Specific Image From The Media Library
- Creating page templates with image placeholders
- How can I upload an image for background use using the Theme Editor in WordPress?
- Can an image have more than one parent_post?
- Where are the resized images coming from?
- unattached media files that should be attached
- Keep image EXIF info after compressing original image?
- Set Post Image Using Shortcode
- How can I attach hotlinked images in posts/pages within the same server?
- WordPress Image Attachment using remote image
- Migration to WP – Couldn’t load image
- How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product
- Every admin only can see his uploaded images im editor
- Multiple amp-image overlays. How to properly do this in wordpress?
- Update an image block style programatically
- Resize into square the single product image in woocommerce without cropping [closed]
- an error occurred in the upload. please try again later (Maybe File Permission Issue)
- User-uploaded images without an account
- Image Upload HTTP 500 Internal server error
- Animated GIF on WordPress posts? [closed]
- Generate images to be associated for tag and category?
- Moving media library to the media library of completely different site
- convert post title to image
- Can you check if a post WYSIWYG field has an image in it?
- how to put image and text on same line [closed]
- Different background images on different sites [closed]
- How to know what size image to use for background? [closed]
- Google Page Speed Insights – Optimize Images
- Weird failing request
- Is there a way in WordPress to convert images to WebP without a plugin?
- Partial img lazy load with WP 5.5
- Why doesn’t WordPress use the smaller sized image?
- Can’t see images in posts after migrating site to subdomain
- Alt Image WordPress [closed]
- Some Images Disappeared from Media Library?
- What is required in the hosting environment for WordPress to process an image into multiple sizes?
- Images dont show up on an iPhone [closed]
- Moving an image to the side [closed]
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- Placing a featured image into header
- Function to grab specific image IDs from media library.
- image upload/edit is broken: “Image data does not exist. Please re-upload the image.”
- How can we upload common images only to AWS S3 using WordPress?
- Deleted Image giving a 301
- Avatar picture is broken
- WordPress append -1 to the image name
- wpdb function for filtering the images by title
- Link to products with the same image title (woocommerce)
- How to echo images Urls from a wordpress post, that are relally in the post
- Adding Post Thumbnail to Metro Pro Theme
- media_handle_upload() with 1 image under 1Mb chokes my server and returns timeout error
- WordPress does not load most theme images
- convert images and media url into blob url
- How to add featured image use HTML
- Correct color profile and saving? Thumbnail creation?
- New portfolio items appearing smaller on the grid
- Image automatically resized
- Modify media file markup output
- Theme page headers and rotator images not assigned after website migration
- WPML – Change media uploader language
- Images Wont Display After Importing From Old WordPress
- Image thumbnail on single product issue | WooCommerce
- How can I hook and edit on the fly an image uploaded
- Anomaly with response coming from XML RPC Api get Post (integer out of range)
- Make all images displayed in single.php a certain size
- Create a custom attachment thumbnail for quick page load
- Change the image for a certain URL
- Removing image dimensions from `the_content`
- Is there a different way to grab a thumbnail image than this?
- Multiple gallery thumnbnails on one page
- Change image link in excerpt to point to post
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Post migration – images do not display
- wp_handle_upload Image sizes
- Display Images from Array with wp_get_attachment_image() [closed]
- Images have dissapeared from media library and site