Title in Comment RSS – Wordpress

I noticed when reading comment rss feeds from other blogs I had a tough time following since Wordpress doesn’t include the post title in the comment feed. I looked around and found the solution. All you need to do is change one line in the wp-commentsrss2.php file.

On line 52 change this:

with this

<br /> < ? php if ( (! is_single()) || (! is_page()) ) {<br /> $title = get_the_title($comment->comment_post_ID);<br /> $title = apply_filters('the_title', $title);<br /> $title = apply_filters('the_title_rss', $title);<br /> echo "$title --";<br /> } ? >

Now all you (JB) need to do is change yours.
[link]

About the Author, Dan Cameron:

I'm the owner and solution engineer at Sprout Venture, a web solutions company that specializes in web development including WordPress.

I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

Read More »

blog comments powered by Disqus