Ready to get started?Download WordPress


Multiple Post Thumbnails
external link on thumbnail (1 post)

  1. george.grigorita
    Posted 2 years ago #

    Hello and thanks for a great plugin! :)

    I'm having a problem with putting an external link on the thumbnail. I found out that this has to be done using custom fields and I even found the code that needs to be applied for this to work on a standard featured image:

     if(has_post_thumbnail()) : ?>
     <a href="<?php echo get_post_meta($post->ID, 'featuredlink', true); ?>">
      <?php the_post_thumbnail(
         array(300, 225),
         array("class" => "alignleft featured_image")
         ); ?>
    <?php endif; ?>

    Then simply in the custom fields sections, I enter featuredlink in the name and the full url (including http://) into the value.

    The problem is that I don't know at all PHP and I have no idea how to do the same for this plugin. Can someone help me with this?



Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by george.grigorita
  • This topic is not resolved
  • WordPress version: 3.3.1