/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<div class="lead-image-wrapper"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <?php $image = get_post_meta($post->ID, 'lead_image', true); ?> <img alt="<?php the_title_attribute(); ?>" src="<?php echo $image ?>" /> </div>
URL: http://5thirtyone.com/archives/875