Forums

Insert image - In custom field (5 posts)

  1. fouadovic
    Member
    Posted 2 years ago #

    Hello,

    For my blog i have to select the three sizes of images "small", "thumb" and "large", and put each one in a custom field, for the moment i copy/paste the URL in the appropriate field.
    I'm looking for a plugin that helps to do it, placing a "Browse" button near the custom field. Or showing specific buttons "Insert" in the media window.

    Thanks

  2. boborg
    Member
    Posted 2 years ago #

    Yes I'm looking for the same thing. Are everybody really content with copying and pasting urls?

  3. willshouse
    Member
    Posted 2 years ago #

    We are all looking for the same thing:

    It has to be out there.

  4. nathan12343
    Member
    Posted 2 years ago #

    NKMImageField

    This plugin does the job perfectly. You'll still need to resize through css or by creating multiple images, but it will save the copy and paste you do now.

    <?php $mycustomimg = get_nkm_imageurl(custom_image);
      if ($mycustomimg !='') { ?>
      	<img src="<?php echo $mycustomimg; ?>"/><?php }?>

    This is a version of the code I use to check if the field (custom_image) has a value. The plugin page gives more info.

  5. Rafael Vega
    Member
    Posted 1 year ago #

    Thanks Nathan!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.