Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to display X last topics from a specific forum ?


  • jejemo
    Participant

    @jejemo

    Hello there,

    I’m currently trying to display 5 last topics of a specific forum ($forum_id).

    I’m already using [bbp-single-forum id=$forum_id] on another page.
    I only need to show the last 5 topics.

    Anybody know how to do that ?

    Thanks !

    jejemo

Viewing 8 replies - 1 through 8 (of 8 total)

  • jejemo
    Participant

    @jejemo

    I just realised, there is a widget that does the job except without the casual informations.

    So I guess the core already does the job. I just need to find where it is.


    Robin W
    Moderator

    @robin-w

    I’ve just recut my topics shortcode to allow you to do just that

    bbp additional shortcodes


    jejemo
    Participant

    @jejemo

    Hello Robin ! Thanks for your answer !

    I tried your plugin and it works great.

    I tried to make 6 post and only 5 were shown so super.
    I am now truing to remove the :

    Viewing 5 topics – 1 through 5 (of 6 total) and the search form.
    Also a pagination is there now. How could I remove it ?

    Whitch file is used to built this ? I hope this is not the same as [bbp-single-forum id=$forum_id] because I need them both.

    Any idea ?


    Robin W
    Moderator

    @robin-w

    Which file is used to built this ? I hope this is not the same as [bbp-single-forum id=$forum_id] because I need them both.

    No both use functions not files, so they are separate.

    Also a pagination is there now. How could I remove it ?

    That should be quite doable, I’ll take a look in the next few days !


    Robin W
    Moderator

    @robin-w

    In fact took a look today and done !

    bbp additional shortcodes

    You now have a template of ‘short’ which just does the titles and topics, no search or other stuff.

    see the web for full details on how to do this, but for example

    [bbp-display-topic-index show=’5′ forum=’29’ template=’short’ ]


    Robkk
    Moderator

    @robkk

    nice on adding additional features robin!! time for me to update!!


    jejemo
    Participant

    @jejemo

    That works great !

    Thanks a lot Robin !!!


    Robin W
    Moderator

    @robin-w

    great – pleased its doing the trick !

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