WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] RSS comments (6 posts)

  1. argentine
    Member
    Posted 8 years ago #

    When I receive RSS comments from my blog in thunderbird or other RSS reader, I can´t see which post this comment comes from. Is there any way in which the title of the post can be included.
    Thanks

  2. skippy
    Member
    Posted 8 years ago #

    I fixed this in my RSS comments file directly. I believe a request exists for this in trac.wordpress.org; and if so it should get rolled into the next release.

  3. skippy
    Member
    Posted 8 years ago #

    Line 52 of wp-commentsrs2.php, change from
    <title>by: <?php comment_author_rss() ?></title>

    to
    <title>Comment on <?php the_title_rss($comment->comment_post_ID); ?> by: <?php comment_author_rss() ?></title>

  4. argentine
    Member
    Posted 8 years ago #

    Thanks a lot Skippy

  5. skippy
    Member
    Posted 8 years ago #

    Oh, I forgot that that won't be sufficient. the_title_rss() needs to also be changed:

    /wp-includes/feed-functions.php, line 12:

    ORIGINAL:

    function the_title_rss() {
    $title = get_the_title();
    $title = apply_filters('the_title', $title);
    $title = apply_filters('the_title_rss', $title);
    echo $title;
    }

    CHANGE TO:
    function the_title_rss($id = 0) {
    $title = get_the_title($id);
    $title = apply_filters('the_title', $title);
    $title = apply_filters('the_title_rss', $title);
    echo $title;
    }

  6. argentine
    Member
    Posted 8 years ago #

    OK, thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags