Support

Account

Home Forums General Issues Use select field for the_post_thumbnail Reply To: Use select field for the_post_thumbnail

  • Hi @stevenharris

    Close, but change:

    the_post_thumbnail( '$size' );

    to

    the_post_thumbnail( $size );

    Please be aware, that you have placed the $size = get_field('image_size'); OUTSIDE of your $myposts loop, so this value is not coming from the post itself, but from what ever the template file is querying.

    Thanks
    E