Advertisement
Guest User

Thumbnail

a guest
Dec 2nd, 2015
821
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None
  1. <?php if( get_post_meta($post->ID, "Thumbnail", true) ): ?>
  2.  
  3. <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;height="150" width="150;" src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
  4.  
  5. <?php else: ?>
  6.  
  7. <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
  8.  
  9. <?php endif; ?>
Advertisement
RAW Paste Data Copied
Advertisement