8000 Get_the_post_thumbnail can't define the size of the image · Issue #132 · voceconnect/multi-post-thumbnails · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Get_the_post_thumbnail can't define the size of the image #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
IacopoC opened this issue Oct 5, 2018 · 2 comments
Open

Get_the_post_thumbnail can't define the size of the image #132

IacopoC opened this issue Oct 5, 2018 · 2 comments

Comments

@IacopoC
Copy link
IacopoC commented Oct 5, 2018

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.

@matgargano
Copy link
matgargano commented Oct 5, 2018 via email

@IacopoC
Copy link
Author
IacopoC commented Oct 8, 2018

Ok thank you I'll give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0