WordPress.org

Forums

Yet Another Related Posts Plugin (YARPP)
YARPP sidebar widget (11 posts)

  1. lakenjr
    Member
    Posted 1 year ago #

    YARPP seems like a wonderful plugin. However, if I tell YARPP to automatically display on posts, then YARPP also automatically displays a sidebar widget as well. I think this must be a bug.

    Normally one can use widget logic to suppress a widget but this widget just "appears" in the sidebar. The only way that I can find to stop this widget is to untick automatically display on posts.

    However, if I do that, I then have to use <?php related_posts(); ?>
    to display the output of YARPP. That is OK but I cannot find a way to style the output neatly.

    My site uses Graphene theme.
    http://www.jetlagandmayhem.com

    http://wordpress.org/plugins/yet-another-related-posts-plugin/

  2. jeffparker
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, lakenjr. Checking "Automatically display on posts" should definitely not automatically display a sidebar widget. You might try disabling other plugins to see if any are interfering with YARPP.

    If you end up having to use related_posts(), you can edit your CSS to style the output the way you'd like.

  3. neahfeald
    Member
    Posted 1 year ago #

    Hi, First of all I love the look of YARP. It's the best I have been able to find! Sadly, I'm experiencing the same problem as lakenjr. Seeing this reply, I went and disabled all non-essential plugins but the problem persists. Is there any way to solve this? Can I perhaps block it from becoming a sidebar widget?
    I'm new to WordPress and equally new to coding. Could you perhaps explain to me how " <?php related_posts(); ?>" can be used if it is impossible to block YARP in the sidebar?
    Thank you!

  4. jeffparker
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @neahfeald. If you're new to coding, I'd rather not recommend editing PHP code, but work on figuring out the sidebar widget issue.

    Can you confirm that the YARPP widget is not being used? ("Appearance" > "Widgets")

    We just pushed out version YARPP 4.0.7, which includes a clean uninstall functionality, when you deactivate and delete through WordPress. You might try loading the new version and seeing if the widget issue gets resolved. If not, click "Delete" on the Plugins page to make sure YARPP database records are fully removed, then reactivate.

    Hope this helps!

  5. neahfeald
    Member
    Posted 1 year ago #

    Hi Jeff,

    That's right, YARP is deactivated at the moment because it messed up the entire sidebar if it isn't. I found the plugin today, it's YARP 4.0.7, so it's already the latest version.
    I have tried a few other 'related posts' plugins and those mess up the sidebar as well. Looks like it's an issue I can't avoid unless I settle for related posts plugins that only do simple lists.
    I still much prefer to use YARP. I'm new to php yes but I'd rather try to fix the problem and learn to work with php while I'm at it (and perhaps even manage to solve it and finally use YARP!) than not try at all.
    Any help would be great!

  6. neahfeald
    Member
    Posted 1 year ago #

    I have reactivated the plugin so that you can see the effect in case that helps to diagnose the problem!
    http://www.e-psych.nl
    The plugin posts related posts in the sidebar (repeatedly and irregularly)

  7. lakenjr
    Member
    Posted 1 year ago #

    My workaround was to insert the following html / PHP as the bottom of each post. The graphene theme makes this possible using an action hook (graphene advanced options post_footer). Alternatively, there are plugins to achieve this.

    <p style="font-size:20px">You may also be interested in:</p>
    <div class="yarpp-related">
     <?php related_posts(); ?>
    </div>

    ALSO To style the above for my requirements, I used the YARPP settings form:

    Before related entries and then after related entries

    <ul style="list-style: none; line-height: 2em;"> 
    
    </ul>

    Before each related entry and then after each related entry

    <li>  •  
    
    </li>
  8. jeffparker
    Member
    Plugin Author

    Posted 1 year ago #

    @neaheald, you also have "Similar posts" displaying, which might be another related post plugin. Can you deactivate your other plugins to see if the issue goes away?

    @lakenjr, are you happy with the display now?

    For both of you, I'd appreciate if you would let me know how you heard about YARPP, using this short survey: http://www.surveymonkey.com/s/Z278L88

    Thanks!

  9. lakenjr
    Member
    Posted 1 year ago #

    I am very happy with the layout achieved by using php related_posts. I will carry out further tests to see if I can revert to using YARPP without the php. I will report back on this.

    I think I encountered my problems in conjunction with the plugin Special Recent Posts (Free edition) - this plugin has now been withdrawn and replaced with a PRO version which I do not use.

  10. jeffparker
    Member
    Plugin Author

    Posted 1 year ago #

    Great. Glad to hear!

  11. neahfeald
    Member
    Posted 1 year ago #

    @jeffparker, that's right, though that isn't a plugin, that's just a standard widget option to list posts from the same category/tags. As I mentioned before, I had all the non-essential plugins deactivated (of course including all similar plugins) and the bug persisted.

    @ Lakenjr, great and detailed explanation, you've been a great help! Thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags