Support Forum

Getting a better handle on my RSS feed – Limit RSS feed

SM Steve Moran
Steve Moran
Member

I grabbed a bit of code from the support forum and now get just the most recent item for each topic which is good.  Now I would also like to eliminate the name of the person making the post.  Right now the RSS for this topic would be:

 

Steve Moran on Getting a better handle on my RSS feed – Limit RSS feed.

Then the text in this box.

My first choice would be this  to just remove the name and leave the Topic Name, plus the stuff in this box.

My second choice would be to at least add a : after the name.

 

Thanks if you have any thoughts on this.

2 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Why not use the template tag or widget for recent topics with posts in which you can specify this….?

BR Brandon
Brandon
Member

If don’t want to use the widget or template tag this should remove the username.

Place is spFunctions.php file

/* change RSS info */
add_filter('sph_feed_item', 'my_feed_title_filter',10,2);
function my_feed_title_filter($item, $spThisPostList) {
$item->title         = $spThisPostList->topic_name;
return $item;
}

Should have or create a custom theme when making changes if you don’t have one already.