Skip to:

Limiting RSS Feed to First Post Only

  • I’m trying to limit the RSS feed, instead of listing all the post within a forum, how do i limit it to the first post only?

    not sure if i’m making sense, but for example I have a forum category called widget 1, inside widget 1 there is 10 sub-categories, how do I make so that the rss feed only shows the 10 sub-categories and not the comments within the sub categories?

Viewing 22 replies - 1 through 22 (of 22 total)
  • Pretty sure line 52 of rss.php in your root folder is what you need to change, but could you give a visual of what you are trying to do?


    Thanks figured it out.

    I apologize the was a premature resolved… I didn’t get it working, as I thought. Let me clarify what I’m trying to do.

    The RSS feed shows replies to the top topic, I only want the top topic to show up, I don’t want any of the replies to show in the rss feed. I hope thats more clear, thanks!

    After all my slicing and dicing with bbPress, I’m finally coming close to completing everything, except one thing. This RSS thing is really killing me :P. I’m wracking my brain trying to explain this the best way possible.

    So here I go. Each forum has a feed, how do I only show the topics in the feed? As it stands right now, the feed is showing the replies as well, I just want topics to show.

    Sorry for sounding redundant, but I’m desperate >_< to complete. Thanks in advance.

    Is this close to what you want? Topic Feeds

    If so, just be patient.

    Exactly what I wanted. I was under the impression that this was already doable, I first got the idea that it could already be done from I was viewing the notes section, where it pulls all the latest topics from all the forums, the feed only shows the topics and not the comments within. Oddly enough, the individual forums themselves show the topic as well as comments within the topics.

    Granted that what I’m looking for is in the trac you provided, but I’m still wondering how 9rules managed to get the front part working to only show the topic and not the replies within, and could this not be applied within forum feeds?

    I did some digging around and found that the 9rule feed is just basically the latest discussion feed, unfortunately mine is still pulling replies within topics. I’m not interested in only being able to do that as it basically gimps what I’m trying to do, but I was curious why mine pulls replies into the feed. Thanks again.

    Here is a temporary solution:


    rss2.php of template:

    If you need the last post content of each topic, please find a recent topic Excerpt and combine this with it.

    Edit: Oops… just find out you are also the starter of that topic.

    Sam Bauers


    If you can wait, this functionality is probably going to be in the next release anyway.

    I’ve already started work on it. I was just putting it aside until I got the new installer and options pages finished.

    I can wait, thanks for your efforts.

    I was testing your temp fix Livibetter, and I was running into this error:

    XML Parsing Error: no element found

    Location: http://localhost/wrdp2/bbp1/rss.php?forum=1

    Line Number 12, Column 1:

    Line 12 of rss.php reads: <link><?php bb_option( ‘uri’ ); ?></link>

    What is that line of generated RSS? <link></link>? (posting completely to pastebin would be better to find out)

    Have you set $bb->uri in your config file?

    What browser are you using?

    I’ve set my $bb->uri to http://localhost/wrdp2/bbp1, I’m on Firefox.

    Could you paste complete RSS feed source?

    I’m a little confused, are you asking for the url of my feed source?

    The generated result, when you navigate to /wrdp2/bbp1/rss/.

    The thing starts with <?xml

    When I access wrdp2/bbp1/rss.php, I get this error:

    XML Parsing Error: no element found

    Location: http://localhost/wrdp2/bbp1/rss.php?forum=1

    Line Number 12, Column 1:

    If I try to access it omitting the .php suffix, I get a 404.

    I have no problems on my test forum.

    When you see that error, right click, view source, then paste that source here.

    Here is the source:

    <?xml version=”1.0″?><!– generator=”bbPress” –>

    <rss version=”2.0″







    <b>Fatal error</b>: Call to undefined function bb_option() in <b>C:wampwwwwrdp2bbp1rss.php</b> on line <b>12</b>

    Are you using bbPress 0.8.3?


    I just noticed I gave you wrong link to rss.php

    This is the correct one:

    Great it works. Thanks for the temp fix, can’t wait till the forum feeds can do this as well.

Viewing 22 replies - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.
Skip to toolbar