Search code examples
wordpresscodex

Weird image attributes when using get_the_post_thumbnail(wordpress development)


<?php get_the_post_thumbnail(get_the_id(),array(370,552));?>

display the following image

Why is creating the attributes 1 and 0 by default ? any ideea ?

I have only defaults plugin installed


Solution

  • I changed the array from get_the_id(),array(370,552)); to get_the_id(),'my-custom-size');