• Resolved jmabel

    (@jmabel)


    Hi,

    I’m trying to figure out what is the value format I should pass to thumb_size?
    Example: if I have a thumbnail size 150x150px
    Should my thumb_size attribute in the short code look like:
    thumb_size=150×150 or thumb_size=150,150 or thumb_size=150.150 or it’s a totally different format?

    Also for the thumb_alignment, if I want to align right do I set it this way thumb_alignment=right?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Justin Sternberg

    (@jtsternberg)

    The thumb_size parameter should be the same value you would pass to get_the_post_thumbnail, but must be a string. E.g. the array( 150, 150 ) concept will not work here. You need to use registered thumbnail sizes.

    The thumb_alignment property simply adds a class to the image, so you would use WordPress’ default alignment classes, alignright, alignleft, alignnone, aligncenter.

    Thread Starter jmabel

    (@jmabel)

    I just tried it now, and it working perfectly.

    Thank you.

    • This reply was modified 9 years, 5 months ago by jmabel.
    Plugin Author Justin Sternberg

    (@jtsternberg)

    👍

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Attributes thumb_size & thumb_alignment’ is closed to new replies.