WordPress Related Posts shows twice…
-
Hello! Today I was adding the fantastic pluging that is WPPostRating and wanted it to show before the WP Related Post. Nothing major there very simple just go to single.php in my template and put in the order below the following:
<?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
<?php wp_related_posts(); ?>But the trouble is I COULDNT FIND THAT LINE OF CODE <?php wp_related_posts(); ?> IN MY SINGLE.PHP BUT STILL DID APPEAR ON EACH POST!
I’ve checked everywhere each file AND FOR THE LIVE OF ME I CANT FIND WHERE I PUT THAT BLOODY LINE!!!! I’ve tried with the default theme and the related post dont appear twice so is defenitly a problem with my template. But I dont know where??? here my code in single.php
<?php get_header(); ?>
<div id=”maintop”>
<div id=”maintopimg”></div></div><!–end maintop–>
<div id=”wrapper”>
<div id=”content”>
<div id=”main-blog”><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”clear”> </div><div class=”post” id=”post-<?php the_ID(); ?>”>
<h1>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h1>
<div class=”postdata”>
Posté par <?php the_author() ?> le <?php the_time(‘M j, Y’) ?> dans <?php the_category(‘, ‘) ?> <?php edit_post_link(‘Edit’, ‘| ‘, ”); ?> | Voter pour cet article | <div class=”rss”>Souscrire | <a href=”mailto:?subject=<?php the_title();
?>&body=<?php the_permalink() ?>” title=”Envoyer cet article à un ami!”>Email cette légende à un ami! | &t=<?php the_title(); ?>” target=”blank”>Partager sur Facebook |
</div>
</div><?php the_content(‘ Read more…’); ?>
<h2>Classer cette légende</h2>
<?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?></div>
<?php comments_template(); ?>
<?php endwhile; ?><?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?><?php endif; ?>
</div><!–end main blog–>
<?php get_sidebar(); ?>
<div class=”clear”></div>
</div><!–end content–>
</div><!–end wrapper–>
<?php get_footer();?></div>
As you can see not wp_related post found anywhere, but it shows on the posts?! http://www.journal.legendesduroyaume.com/2009/12/la-mariee-au-gui/
I could probably show my ratings somewhere else and leave it as it is but is really bugging me and I know someday I gonna need to know otherwise gonna bite me back…
Gratefull for any help and Merry Christmas!
The blog I need help with is: (visible only to logged in users)
-
The blog you specified at http://www.journal.legendesduroyaume.com does not appear to be hosted at WordPress.com.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘WordPress Related Posts shows twice…’ is closed to new replies.