So after a bit of testing I figured out what was wrong. It’s the fact that I used numbers in the custom size name.
WordPress created the custom image sizes fine when I uploaded images. All custom sizes were in my FTP directories and had an extension of 250×250.
The problem is in calling the new size later. WordPress was never doing it.
I added a new custom size:
add_image_size( 'cat-square', 250, 250, true); // cropped
I then re-generated image sizes for just one image to test. The new image size was referenced correctly and shows on the front end.
No new images were actually created though. It was still using the -250×250 version of the image.
So in the end, I removed the 250-square media size, then regenerated all images and everything is good and working!
TL;DR: It appears you can’t use numbers when creating the name for custom image sizes in wordpress.
Related Posts:
- How do you remove hard coded thumbnail image dimensions?
- How do you get the post thumbnail size?
- Setting a post’s featured image from an embedded YouTube video
- Minimum Dimensions Requirement for Featured Image?
- Display thumbnail only if requested size exists
- the_post_thumbnail hard cropping not working no matter what
- the_post_thumbnail with lazyload JQ plugin
- Display Post Thumbnail Without Being Featured Image
- Featured Image of Video from oembed
- Multiple featured image thumbnails for post types (Multiple Post Thumbnails plugin)
- Featured image with the same height thumbs returns wrong thumb
- Set post-thumbnail (with php)?
- get_thumbnail_id returns full size image
- can the_excerpt function also get images?
- Change Output for Images in Content
- Add post title as alt tag for featured image
- How to scale up image into thumbnail without distorting it?
- Using Gutenberg block components in admin interface controls
- previous / next post with thumbnail
- Multiple Post Thumbnails plugin and attachment error
- WordPress resizes image to the same size as uploaded
- Possible to swap in a placeholder image globally for the_post_thumbnail_url if one doesn’t exist?
- How to set an attachments parent post id in code?
- How to use wp_get_attachment_metadata for thumbnails
- Wrap post thumbnail with
- Use wp_remote_get to add image to media library
- Can a thumbnail of an animated gif be animated?
- Is it possible to get local image URL when also having photon active?
- Featured Image Size Conditional Tag?
- How can I call a thumbnail/featured image to be a background image?
- create new post using rest API and set featured Image from an external link
- Replicate featured image functionality
- Woocommerce – remove the default image placeholder? [closed]
- Need clear explanation about medias/files/attchments
- Remove link from post images
- Call Featured Image from Parent Page
- How to add post featured image url to inline background url()?
- Allow author to choose his featured image size
- How to get cropped thumbnail source for custom post type
- Using thumbnail functions inside a shortcode
- Featured image for first post only
- Featured Image Not Working when loaded from sub-domain
- How can I use a static (ish) URL for the featured image for a post?
- get_the_post_thumbnail ignores my default thumbnail size [closed]
- Remove the link to a featured image if and only if it’s not a gif
- How to query posts with featured images
- hrecipe microformat tag to “featured image”
- Server B handling add_image_size() differently than Server A
- the_title() is not displaying over the_thumbnail
- Wanting to change presentation from full post to featured image (post_thumbnail) only
- Show posts image attachments
- Choose to Display Post Thumbnail?
- How do I make images appear in the beside blog post summaries?
- Featured Image meta box shows at the bottom?
- Thumbnail is showing outside its div instead of inside it
- How can I assign bloginfo path or thumbnail path to a variable and call it in markup?
- Use the_post_thumbnail as background image in LESS CSS [closed]
- How to get featured image thumbnail to open larger version in attachment page?
- How To Use YouTube Url Stored In Custom Field To Get Video Image and Set it As Featured Image
- Display post thumbnail in foreach loop
- Add image size array to a portfolio thumbnail in combination with Masonry Jquery Plugin
- Define width of featured image thumbnails, but also make responsive?
- Add title to image post
- How to attach images that I “insert from url” into the post?
- If no featured image, add one of the default images into DB
- the_post_thumbnail(‘medium’) still gives thumbnail-size img
- My Gallery Photos are showing in the post’s excerpts
- the_post_thumbnail not resizing
- How to add featured images to posts from a category
- WordPress stopped generating image thumbnails after changing hosting environment
- Thumbnail size problem Desktop vs Mobile site
- Cropped featured image
- My theme header is stuck on a low resolution image?
- Thumbnail (featured image) and Media Library cleanup queries help needed
- Child Theme not overwriting Parent theme php file
- Image size doesnt change via wp_get_attachment_image_src
- replace featured image from frontend
- Thumbnails are hard cropped not matter what
- Post thumbnail not working when previewing post
- Post thumbnail not displaying correct size
- How to add post thumbnail on posts on sites homepage?
- Conditional: IF current author’s custom post has a post thumbnail
- How to undo thumbnail regenration
- wp_get_attachment_image_src() works on index, but not on Archives
- IF statement to filter featured image article
- Featured image url
- How to add a class to figure tag for featured images?
- Post thumbnail won’t resize to fit
- Trouble Retrieving Thumbnail URL on Front-Page
- Featured Image not showing on wordpress hosted under Amazon AWS
- Featured Image / Post Thumbnail Cropping Query
- Using set_post_thumbnail inside save_post action gets overwritten
- trouble with the_post_thumbnail
- How can I make thumbnails a display different size/position if the blog post was posted before a specific date?
- Why does Facebook not want to display my post thumbnails?
- Change background image in PHP
- Display featured image metadata?
- Strange image artifact on font-page thumbnail image
- Images thumbnail not cropping square
- wp media regenerate says “no regeneration needed” whe that’s no the case