{"id":306,"date":"2005-05-08T20:38:18","date_gmt":"2005-05-08T17:38:18","guid":{"rendered":"http:\/\/www.all-things-me.net\/blog\/archives\/2005\/05\/08\/how-to-pingbacks-andor-trackbacks-excluded-from-comments-feed"},"modified":"2005-05-10T00:38:00","modified_gmt":"2005-05-09T21:38:00","slug":"exclude-pingbacks-from-rss","status":"publish","type":"post","link":"https:\/\/www.all-things-me.net\/blog\/2005\/05\/08\/exclude-pingbacks-from-rss","title":{"rendered":"Exclude pingbacks from comments RSS"},"content":{"rendered":"<p>A weird character in Jafer&#8217;s pingback title (or site title, actually) messed with my comment feed, so I decided to exclude pingbacks (as I won&#8217;t allow trackbacks) from my comments feed. I tweaked wp-commentsrss2.php file (found in the root WP folder), around lines 36 and 44:<\/p>\n<blockquote class=\"php\"><p>AND $wpdb->comments.comment_approved = &#8216;1&#8217; <strong>AND $wpdb->comments.comment_type != &#8216;pingback&#8217;<\/strong><\/p><\/blockquote>\n<p>Comments are of type &#8221; (null) and trackbacks are &#8216;trackback&#8217;, so I think putting comment_type = &#8221; would work as well and you wouldn&#8217;t have to put a != (not equals) for both pingbacks and trackbacks.<\/p>\n<p>[edit: May 9] That was a short-lived hack. WP1.5.1. solves the problem with odd characters causing grief for RSS feed readers [\/edit]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A weird character in Jafer&#8217;s pingback title (or site title, actually) messed with my comment feed, so I decided to exclude pingbacks (as I won&#8217;t allow trackbacks) from my comments feed. I tweaked wp-commentsrss2.php file (found in the root WP folder), around lines 36 and 44: AND $wpdb->comments.comment_approved = &#8216;1&#8217; AND $wpdb->comments.comment_type != &#8216;pingback&#8217; Comments [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,18],"tags":[],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-tweaks","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/comments?post=306"}],"version-history":[{"count":0,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts\/306\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/media?parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/categories?post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/tags?post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}