• Resolved Frescomannen

    (@frescomannen)


    Hello!

    First: a big thank you. Your plugin and my current framework has made it possible for me to build a bilingual webpage without having to set up a network. Great!

    Now to the problem at hand. My front-page is using posts with featured images at 200px width and 120px height; and I’m trying to duplicate the same thing using your plugin. I use

    ‘<div class=”featured-image”>
    “>
    <?php the_post_thumbnail( array(180,9999), array(“class” => “alignleft”)); ?>

    </div>’

    … to get the featured-image for the page in which I’m using your plugin, and to make it a link to the post in question. However, even if I format the div-tag “featured-image” and the image itself to 200*120px (for usability purpouses, that way the guy can use the same image for the post as well as the feat image) it rezises itself 180*117 and 180*140. I guess to keep the aspect ratio – but I want it to crop the same way wordpress does. Is there a way to do so?

    Regards

    Fredrik

    http://ww.wp.xz.cn/plugins/posts-in-page/

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

The topic ‘Cropping featured image’ is closed to new replies.