Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter CarolWP

    (@carolwp)

    Just answered my own question! I switched to using a new template to show the related posts. I edited the example template to read as follows, and called it yarpp-template-new.php:

    <?php
    /*
    YARPP Template: New
    Author: Me, based on mitcho (Michael Yoshitaka Erlewine)
    Description: My YARPP template.
    */
    ?>
    
    <?php if ( ( !is_sticky() ) && (have_posts())):?>
    
    <h3>Related Posts</h3>
    <ol>
    	<?php while (have_posts()) : the_post(); ?>
    	<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><!-- (<?php the_score(); ?>)--></li>
    	<?php endwhile; ?>
    </ol><br><br>
    
    <?php endif; ?>

    Great! That’s a nice systematic solution.

    You can also add the comment <!–noyarpp–> to any post to display the automatic display of YARPP on that page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Don't show related posts on sticky?’ is closed to new replies.