I just posted a Wordpress plugin that will now include the post title in Comment RSS feed. I talked about this earlier and then Jared sneaked in and made a quick plugin. I wish he hadn’t but it did help me because instead of searching for the code I now just had to look at what he did. But to clarify, I didn’t just rip Jared’s Plugin, I really didn’t; I am using more code from the hack I found then what he wrote, and I improved the formating a little.
So there, thanks Jared, maybe now I can get 80k a month.

I'm a 









Add New Comment
Viewing 4 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
As for echo vs. return, it is kind of a matter of preference - the WP code itself uses both, kind of randomly. The difference is yours will always output when the code is run, whereas mine returns the string to the calling function, which in this case is the filter method for 'comment_author_rss', which is programed to add anything your filter method returns. Yours will work because even though it's not returning everything, it is echoing (outputting to the browser) as it processes.
The advantage to doing return instead of echo is that if you want to use that method for something else (just to get the value, not write it) you could just reuse that method without making a new one.
Add New Comment
Trackbacks