Skip to content

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

@IacopoC

Description

@IacopoC

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions