Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum loop


  • Abdizriel
    Participant

    @abdizriel

    Hello,
    What is loop code for getting all forum topics?
    I want to show latest post from forum in footer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Something like this should get you going:

    if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => 'false', 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) )
    bbp_get_template_part( 'bbpress/loop', 'topics' );

    Abdizriel
    Participant

    @abdizriel

    I got error: Warning: Division by zero

    As for now I got this in footer:

    http://pastebin.com/Pn1XdZCh

    And want change to get forum topics not group


    Abdizriel
    Participant

    @abdizriel

    bump


    Lynq
    Participant

    @lynq

    If you add the code in you get a Division by zero and if you take it out you don’t get it, is that correct?
    Have you tried taking it back out?

    I am just wondering if it is a recently updated plugin causing the division by zero.


    Abdizriel
    Participant

    @abdizriel

    I’ve tried it.
    Division by zero gives me bbp_get_template_part( ‘bbpress/loop’, ‘topics’ )

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