Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /*
- Example template for use with post thumbnails
- Requires WordPress 2.9 and a theme which supports post thumbnails
- Author: mitcho (Michael Yoshitaka Erlewine)
- */ ?>
- <div id="related-post">
- <?php if ($related_query->have_posts()):?>
- <?php /*<h3>Related Articles</h3>*/ ?>
- <ul>
- <?php $i = 0; while ($related_query->have_posts()) : $related_query->the_post(); $i++; ?>
- <li<?php if($i == 4) { echo " class='last'"; } ?>>
- <div class="thumb"><a href="<?php the_permalink() ?>" onClick="recordOutboundLink(this, 'Popular', 'In Post Thumb','<?php echo $i;?>');return false;"><?php the_post_thumbnail('small'); ?></a></div>
- <span><a href="<?php the_permalink() ?>" onClick="recordOutboundLink(this, 'Popular', 'In Post Text','<?php echo $i;?>');return false;"><?php the_title(); ?></a></span>
- </li>
- <?php endwhile; ?>
- </ul>
- <?php else: ?>
- <h3>No Related Articles</h3>
- <?php endif; ?>
- <div style="clear:both"></div>
- </div><!--related-->
Add Comment
Please, Sign In to add comment