Skip to:
Content
Pages
Categories
Search
Top
Bottom

get last two posts


  • jinwha
    Participant

    @jinwha

    Hi everybody.

    Just got bbpress sorted out.
    But as always I need a bit more functionality.
    Can any one point me in the right direction to put a query together to extract the last two posts made on bbpress to display on the site home page.

    been digging about in the db but can’t find any clues there..Anyone?

    thanks

Viewing 1 replies (of 1 total)

  • jinwha
    Participant

    @jinwha

    OK.

    Just in case anybody else is looking..

    BBPress uses a post_type “topic” so you can pull the post using a get_posts() with one of the args being ‘post_type’ => ‘topic’.

    hope this points someone in the right direction.

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