WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnail (1 post)

  1. Wanjiru
    Member
    Posted 2 years ago #

    Am developing a fashion website. In my portfolio page the thumbnail is only picking the middle section of the image.I would like the thumbnail to resize the whole image.

    The code is

    <?php
    $lbtitle = get_post_meta(get_the_id(), "_lbtitle", true);
    $url = get_post_meta(get_the_id(), "_lburl", true);
    $lbdesc = get_post_meta(get_the_id(), 'lbdesc', true);
    $cg_image_url = get_post_meta(get_the_id(), 'cg_image_url', true);
    $custom_image_url = get_post_meta(get_the_id(), 'custom_image_url', true);
    $thumb = get_post_thumbnail_id();
    $image = vt_resize( $thumb,'' , 383, 200, true, 70 );
    if($url == "") {
    $imgurl = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
    } else {
    $imgurl = get_post_meta(get_the_id(), "_lburl", true);
    }
    ?>

    Please Help

Topic Closed

This topic has been closed to new replies.

About this Topic