Get_the_post_thumbnail can't define the size of the image · Issue #132 · voceconnect/multi-post-thumbnails · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using this code inside a WP_Query loop, <?php echo MultiPostThumbnails::get_the_post_thumbnail('products','secondary-image'); ?>
but even if I define a custom add_image_size in functions php, add_image_size('custom-thumbnail-size', 300, 300, true);
I can't define a custom image size and the thumbnail remain 150px x 150px
I tried in this way: <?php echo MultiPostThumbnails::get_the_post_thumbnail('custom-thumbnail-size','products','secondary-image'); ?>
Thanks for helping.
The text was updated successfully, but these errors were encountered:
If you upload an image before defining a thumbnail size there is no implicit process in WordPress that will retro crop images, you have to use a plugin to regenerate thumbnails.
See https://wordpress.org/plugins/regenerate-thumbnails/
On Oct 5, 2018, at 7:00 AM, Iacopo C ***@***.***> wrote:
Hello,
I'm using this code inside a WP_Query loop,
<?php echo MultiPostThumbnails::get_the_post_thumbnail('products','secondary-image'); ?>
but even if I define a custom add_image_size in functions php,
add_image_size('custom-thumbnail-size', 300, 300, true);
I can't define a custom image size and the thumbnail remain 150px x 150px
I tried in this way:
<?php echo MultiPostThumbnails::get_the_post_thumbnail('custom-thumbnail-size','products','secondary-image'); ?>
Thanks for helping.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Hello,
I'm using this code inside a WP_Query loop,
<?php echo MultiPostThumbnails::get_the_post_thumbnail('products','secondary-image'); ?>
but even if I define a custom add_image_size in functions php,
add_image_size('custom-thumbnail-size', 300, 300, true);
I can't define a custom image size and the thumbnail remain 150px x 150px
I tried in this way:
<?php echo MultiPostThumbnails::get_the_post_thumbnail('custom-thumbnail-size','products','secondary-image'); ?>
Thanks for helping.
The text was updated successfully, but these errors were encountered: