• A couple of weeks ago I posted about enabling comments to static pages. Now that that’s working, I’ve discovered that neither Comments RSS nor Trackback work for these static pages.
    Before I go digging in the code to try to make this work, I should ask, is this a good idea? SHOULD these be enabled?

Viewing 2 replies - 1 through 2 (of 2 total)
  • same problem for me with my wp1.5.
    Any suggestions?
    The problem with RSS feed or trackback for pages is wordpress trackback and rss treats pages and post the same so that it always gives me url that contains …/p=id_number instead of page_id=id_number.. how can I fix this?

    I was able to fix this problem by modifying the following files.
    1. /wp-includes/comment-functions.php
    Find the function get_trackback_url() and modify the following lines:
    $tb_url = get_settings(‘siteurl’) . ‘/wp-trackback.php?p=’ . $id;
    to
    if(is_page()){
    $tb_url = get_settings(‘siteurl’) . ‘/wp-trackback.php?page_id=’ . $id;
    }else{
    $tb_url = get_settings(‘siteurl’) . ‘/wp-trackback.php?p=’ . $id;
    }

    2. /wp-includes/feed-functions.php
    Find function comments_rss and change the following lines:
    $url = get_settings(‘siteurl’) . “/$commentsrssfilename?p=$id”;
    to
    if (is_page()){
    $url = get_settings(‘siteurl’) . “/$commentsrssfilename?page_id=$id”;
    }else{
    $url = get_settings(‘siteurl’) . “/$commentsrssfilename?p=$id”;
    }

    Hope this helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comments RSS and trackback for static pages?’ is closed to new replies.