Info
- 3 posts
- 2 voices
- Started 2 years ago by davidgv
- Latest reply from davidgv
- This topic is resolved
Forum names in RSS recent posts
-
- Posted 2 years ago #
How can i put the name of the forum, for each post, in the RSS feed "recent posts" ?
-
- Posted 2 years ago #
Easiest way would be to add
<?php $post_forum = bb_get_forum( $bb_post->forum_id ); echo $post_forum->forum_name; ?>inside your theme's rss2.php, after it says<?php foreach ($posts as $bb_post) : ?>, possibly inside the<title>part.i.e.
<title><?php post_author(); ?> <?php _e('on')?> "<?php topic_title( $bb_post->topic_id ); ?>" <?php _e('in')?> "<?php $post_forum = bb_get_forum( $bb_post->forum_id ); echo $post_forum->forum_name; ?>"</title> -
- Posted 2 years ago #
It's perfect !! Thank you.
-
You must log in to post.