image_size_names_choose not working
-
I’m trying to get the Image Uploader to show my cutom image sizes in the list. Here’s my code:
function custom_wmu_image_sizes($sizes) { $myimgsizes = array( "vnn-slide-cropped" => __( "VNN Slide" ) ); $newimgsizes = array_merge($sizes, $myimgsizes); return $newimgsizes; } add_filter('image_size_names_choose', 'custom_wmu_image_sizes');
When I do a print_r on $newimgsizes I can see that me new sizes are actually in there, but they don’t render on the page, which makes me think my filter isn’t working properly. I don’t know how to debug that though. 🙁
Where do I go from here?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘image_size_names_choose not working’ is closed to new replies.