WordPress.org

Ready to get started?Download WordPress

Forums

Category Thumbnail
[resolved] Image size (3 posts)

  1. Arden012
    Member
    Posted 2 years ago #

    Is there any way I could be calling a smaller Image size then the original? Would be awesome!

    Thanks,

    Arden

    http://wordpress.org/extend/plugins/dirtysuds-category-thumbnail/

  2. digibucc
    Member
    Posted 2 years ago #

    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.

  3. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    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"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic