WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] RSS bug report (4 posts)

  1. Dave
    Member
    Posted 2 years ago #

    Previously I had YARP set to show both on posts, and feeds with no issues.

    I disabled YARP to show on posts, so it would only show on RSS

    I started getting server time outs on the RSS feed, and feed validation brought up "error on line 1 at column 1: Document is empty"

    Disabling YARP fixed this error.

    Likewise re-enabling YARP to show on both posts and feeds fixed this.

    If mitcho could have a look into this, it would be great.

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, interesting. The issue is that computing these results on the fly in the RSS takes time, particularly if there are multiple in the feed that don't have cached results. If they're previously displayed on the posts as well, then it'll compute them one at a time and then cache the results.

    I would suggest displaying the related posts on the posts as well. If you don't want to actually show them there, just wrap the call to <?php related_posts(); ?> in an HTML comment, or use CSS to hide it.

    I'll think about whether there's a better solution to this, but that's what I'd recommend.

  3. Dave
    Member
    Posted 2 years ago #

    Yea, it's a little different alright.

    Full credit to you for your replies, and in keeping this plugin up to date.

    Also for being one of the very few Social plugin authors that support RSS feeds that work.

    I activated both RSS and posts, and it's working again. I'll try the CSS method.

    Showing through on RSS sounds like a small thing, but it really can be very important if you have a large subscriber base. So well done again for keeping this working on the plugin.

    here's hoping you make a social sharing plugin one day too :)

    Any plans to allow easy tracking of clicks on YARPP?

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    I don't have any click tracking in the bundled templates, but it shouldn't be too hard to modify one of the custom templates so that it adds a Google Analytics campaign code or somesuch, or even replaces the links with some JavaScript that pings some service. This should all be possible.

    More info:

    http://mitcho.com/blog/projects/yarpp-3-templates/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic