WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post-Thumbs revisited link to image and not post (3 posts)

  1. raykart
    Member
    Posted 6 years ago #

    Hey,

    Been trying out the the post-thumb plugin by http://www.alakhnor.com/post-thumb . And have the following issue, post thumbnails link to the psot image instead of posts. Using this code:


    <?php echo get_thumb('altappend=thumb_&width=180&height=60&vcrop=0&hcrop=0'); ?>

    Also I can't seem to figure out how to make it so that it crops and resize image to 180 x 60 regardless of the image size. I'm wanting to get a similar effect as on http://www.dannychoo.com/

    Thanks!

  2. alakhnor
    Member
    Posted 6 years ago #

    If you want to link to post instead of image, add showpost=1.
    If you want to size to 180x60 regardless of original image ratio, ass keepratio=0.
    <?php echo get_thumb('altappend=thumb_&width=180&height=60&vcrop=0&hcrop=0&showpost=1&keepratio=0'); ?>
    :)

  3. raykart
    Member
    Posted 6 years ago #

    That worked! Thank you :D!

Topic Closed

This topic has been closed to new replies.

About this Topic