WordPress.org

Ready to get started?Download WordPress

Forums

New RSS entries/comments not working (4 posts)

  1. creativefield
    Member
    Posted 5 years ago #

    Hi - I'm new to blogging and I've scoured the RSS forum for help and have not found anything to help resolve my issue.

    My url is blog.goenergetix.com. I have an RSS page with links to RSS comments and entries. When you subscribe to these links, you will receive past comments/entries, but if a new comment or post is added, it doesn't work. I validated the blog and there are many issues (some of which are too technical for me to understand). However, I did go in to each post and make sure the html was as clean as possible, but to no avail...

    Is there anyone that might be able to help me with this?

  2. lkessler
    Member
    Posted 5 years ago #

    I've noticed the same thing.

    In my blog, I have a feed for my entries and a feed for my comments. When a new comment is added the comment feed is NOT updated. But when a new entry is added, BOTH the entry feed and the comment feed are updated.

    I think WordPress is doing this wrong. I found your question while looking for a solution. But I haven't found a solution yet.

  3. lkessler
    Member
    Posted 5 years ago #

    Okay. I think I found and fixed the problem, at least in WordPress 2.5 and 2.6.

    It seems that in: wp-includes\classes.php, about line 188, that $this->query-vars['withcomments'] is not set to anything when the Comments-feed link is clicked on.

    What I did was after the following line:

    if ( !empty($this->query_vars['withcomments'])

    I added the following line:

    || ($this->query_vars['feed'] = 'comments-rss2')

    What this does is detect if the comments-rss2 parameter was passed to the feed variable (see what your RSS link looks like - if you aren't using RSS2 it might be different), and if so, it will use the lastcommentmodified date rather than the lastpostmodified date.

  4. lkessler
    Member
    Posted 5 years ago #

    Correction. That should be a double ==, not a single =.

    || ($this->query_vars['feed'] == 'comments-rss2')

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags