Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ($related_query->have_posts()) { ?>
- <h3>Related Posts</h3>
- <ul id="myRelatedPosts">
- <?php while ($related_query->have_posts()) {
- $related_query->the_post(); ?>
- <li>
- <?php if (has_post_thumbnail()) { ?>
- <a href="<?php the_permalink() ?>" class="relthumb">
- <?php the_post_thumbnail(); ?>
- <?php } else { ?>
- <a href="<?php the_permalink() ?>" class="relthumb"><img src="<?php bloginfo('template_url') ?>/images/default.jpg" alt="blog post" /></a>
- <?php } // end if/else thumbnail ?>
- <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><?php echo create_short_version(get_the_excerpt(), 60); ?></li>
- <?php } // end while ?>
- </ul>
- <?php } // end if/else having posts ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement