• Added yarpp to my sidebar using this code if ( is_single() && function_exists(‘related_posts’) ) {
    related_posts();
    }

    but for some reason I keep getting the same posts. If I use the automatic option instead and let the plugin automatically insert the related posts, it seems to work perfecly.

    Any ideas?

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

    (@mskogly)

    Update: When I use it in the sidebar, I get a list of related posts for the very last post I list in my other loop. I list the six latest posts with thumbs in the sidebar before I call related_posts(), using new WP_Query.

    <?php $recent = new WP_Query(“cat=44&showposts=6”); while($recent->have_posts()) : $recent->the_post();?>

    Can it be related to this?

    Most likely your sidebar is out of The Loop, so it doesn’t get information on what post is being displayed. Why not use the builtin YARPP widget?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Placement in sidebar.php gives same result on all posts’ is closed to new replies.