Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Post Author included in Title for RSS feeds
Avatar
Rem Kingston
Member
Free Members
sp_UserOfflineSmall Offline
May 21, 2015 - 2:34 pm

Forgive my newbness Mr Papa but how would I edit your code to include more than one forum in your change.

 

For example:

Forum ID 12 & 15 to have their RSS feed effected only?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 21, 2015 - 8:12 pm

like this:

add_filter('sph_feed_item', 'my_feed_title_filter',10,2);
function my_feed_title_filter($item, $spThisPostList) {
    if ($spThisPostList->forum_id == 12 || $spThisPostList->forum_id == 15) $item->title = $spThisPostList->topic_name;
    return $item;
}
Avatar
Rem Kingston
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2015 - 8:25 am

Thank you Mr Papa! 

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2015 - 9:01 am

Glad we could help.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625