Support » Plugin: Category Thumbnail » [Plugin: Category Thumbnail] Image size

Viewing 2 replies - 1 through 2 (of 2 total)
  • i have never used this, but in looking at the code it seems:
    line 45 reads:

    $embed .= '<img src="'.wp_get_attachment_thumb_url($imageid).'" alt="'.get_the_title($imageid).'" />';

    if you change that to:

    $embed .= '<img height="50%" width="50%" src="'.wp_get_attachment_thumb_url($imageid).'" alt="'.get_the_title($imageid).'" />';

    for example, it should half the size. change 50% to what you need. it can be absolute sizes as well, such as 500px.

    Plugin Author Pat Hawks

    (@pathawks)

    Sorry for my delayed response.

    You can use the size attribute to select any named size in WordPress. No PHP editing necessary :p
    http://codex.wordpress.org/Post_Thumbnails#Thumbnail_Sizes

    [catthumb id="1" link="true" size="thumbnail"]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Category Thumbnail] Image size’ is closed to new replies.