wp media regenerate to generate thumbnails. While this works for the built-in Wordpress image sizes (even when the width and height are customized in
functions.php), it does not work at all for custom image sizes. The command finishes and the custom sizes simply are not generated. The original images are much larger than the sizes being generated, so it's not related to upsampling. I've also tried declaring the custom sizes using the
after_setup_theme action hook, but the result was the same. Does
wp media regenerate only work for the built-in media sizes, or am I doing something wrong?
// Built-in sizes work update_option("large_size_w", 2000); update_option("large_size_h", 9999); update_option("large_crop", 0); // Custom sizes don't work add_image_size("Custom Size", 320, 320, true);