Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( has_post_thumbnail() ) { ?>
- <div class="related-post clearfix">
- <div class="grid_2 alpha">
- <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('small-thumbnail'); ?></a>
- </div>
- <!-- END .grid_2 alpha -->
- <div class="grid_15 omega">
- <h4><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
- <p><?php echo excerpt(13); ?></p>
- </div>
- <!-- END .grid_15 omega -->
- </div>
- <!-- END .related-post -->
- <?php } ?>
- <?php
- //show related item without featured image
- else { ?>
- <div class="related-post clearfix">
- <h4><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
- <p><?php echo excerpt(13); ?></p>
- </div>
- <!-- END .related-post -->
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment