Forums

use medium and larg size of uploaded image by themes (1 post)

  1. vafa
    Member
    Posted 3 years ago #

    hi
    i use this code for inserting a uploaded image (cropped -> fixed height or width) in to a post:

    <?php unset($cfthumb); $cfthumb = get_post_meta($post->ID, 'thumb', true); if ($cfthumb) :?>
      <img id="thumb" src="<?php echo get_option('home'); ?>/wp-content/uploads/<?php echo $cfthumb; ?>90x90.jpg" alt="<?php the_title(); ?>" />
    <?php endif; ?>

    we have only one option for cropping images.
    now i need solution for insert another size of image (medium or large).

    can i get a medium image height dimensions?

Topic Closed

This topic has been closed to new replies.

About this Topic