Support » Fixing WordPress » Permalink – Comments feed

  • Hi there,

    I didn’t find in the doc what is the path of the comments feed when I use permalinks. With wordpress default hierarchy the path of the comments feed is wp-commentsrss2.php, but i don’t know what to use with the permalink hierarchy.

    For the rss2 and atom feeds I simply use the /feed/rss2/ and /feed/atom/.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • example.com/comments/feed

    displayed by:
    <?php bloginfo('comments_rss2_url'); ?>

    Thanks moshu,

    It seems to work (the link) but it seems that there’s a bug. Do you know what can be the problem?

    I didn’t touch the comments feed’s page since I installed WordPress.

    XML Parsing Error: junk after document element
    Location: https://www.example.com/it/is-instructions/comments/feed/
    Line Number 4, Column 10:			</div><?xml version="1.0" encoding="UTF-8"?>
    ------------------------------^

    Thanks

    That’s not “bug”. That’s bad code in your blog, as the error message says: junk…

    Why then – when I simply put /feed/rss2/ on the single post – it shows “comments for… (the post title)”. It makes me think that the comment template file is ok.

    Also the wp-commentsrss2.php file only contains:

    <?php
    
    if (empty($wp)) {
    	require_once('./wp-config.php');
    	wp('feed=rss2&withcomments=1');
    }
    
    require (ABSPATH . WPINC . '/feed-rss2-comments.php');
    
    ?>

    How then can it contains bad code?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalink – Comments feed’ is closed to new replies.