WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] Related posts showing at end of post, but not on sidebar (5 posts)

  1. sdickert
    Member
    Posted 3 years ago #

    Mitcho -

    Thanks for a great plugin - and I love the light-weight aspects of it.

    Only now, I am having a problem with the plug-in on the sidebar. On any single page, the related posts that are showing at the bottom of the post are not showing up in the sidebar widget.

    Any ideas why?

    http://tinyurl.com/yarppside1
    http://tinyurl.com/yarppside2

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Most likely this is some interaction between the related posts widget and the "original investigations" widget you have. Is the issue fixed if you move related posts above that other widget?

  3. sdickert
    Member
    Posted 3 years ago #

    I will try. The Original Investigations widget is the ExecPHP widget.

  4. sdickert
    Member
    Posted 3 years ago #

    Wow. It worked. I wonder why. Could it be some of the PHP code I have in the widget?

    What made you suspect the PHP widget?

  5. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    :) Glad that was it.

    The widget clearly runs its own WP_Query. Most likely what YARPP was doing then was displaying related posts based not on the main post you're displaying, but based on that last post displayed under Original Investigations.

    If you want to keep the original placement, you would need to rewrite the Original Investigations display to use something like get_posts or its own WP_Query instance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic