sdickert
Member
Posted 2 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
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?
sdickert
Member
Posted 2 years ago #
I will try. The Original Investigations widget is the ExecPHP widget.
sdickert
Member
Posted 2 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?
:) 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.