[Plugin: Yet Another Related Posts Plugin] yarpp displaying correct image & url but title is wro
-
If you go to this post http://revivl.com/features/?p=39 you can see I have the image and link coming in correctly but the title displayed is that of the post I am currently reading. Here is the code i’m using:
<div class="col1"> <h2>Related Posts</h2> <?php $results = $wpdb->get_results(yarpp_sql(array('post'),array())); foreach ( (array) $results as $_post ) : ?> <div class="th fl"> <a href="<?php echo get_permalink($_post->ID); ?>"> <img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a> </div> <a href="<?php echo get_permalink($_post->ID); ?>" rel="bookmark"><?php echo get_the_title(); ?></a> <div class="hl2"></div> <?php endforeach; ?> </div>
Thanks in advance for your help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Yet Another Related Posts Plugin] yarpp displaying correct image & url but title is wro’ is closed to new replies.