Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get Category Last Poster (1.1)


  • ChrisOGwynne
    Participant

    @chrisogwynne

    Is there anyway to display within front-page.php who was the last to post in a category?

    It works for topics, but not catergories.

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

  • ChrisOGwynne
    Participant

    @chrisogwynne

    Anybody?


    Brandon Allen
    Participant

    @cnorris23

    There isn’t a function that does this for you, and that info is not currently stored. You would have to write a function to store this info, then write another to retrieve it.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    You can use bbp_get_forum_last_active_id() to get the post ID of the latest topic or reply. From there you’ll have to use WordPress functions to get out what you need.

    (This, of course, is assuming you’re using bbPress 2.0 or beyond)

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