Skip to:
Content
Pages
Categories
Search
Top
Bottom

Single Forum Topic on WordPress Homepage

  • @arjunskumar

    Participant

    Hello,
    To start with, I’m on bbPress 2.5.3 and WP 3.9.1
    I currently display a list of topic titles (say 5) from a particular forum on my homepage using the bbPress Recent Topic widget that comes along with the installation.
    I want to show the most recent topic from this forum and the first reply made to it on my homepage. Any thoughts or inputs will be helpful!

    Thanks

Viewing 1 replies (of 1 total)
  • @robin-w

    Moderator

    You would need to cut some code, but basically you would be looking at

    using some code from the widget to find the latest topic

    then maybe using the shotcodes

    [bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096]

    and if it has a reply

    [bbp-single-reply id=$reply_id] – Display a single reply eg. [bbp-single-reply id=32768]

    using the do-shortcode function https://codex.wordpress.org/Function_Reference/do_shortcode

    If you do this, please post the result here for the benefit of others !

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