Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to loop all topics in one view?

  • @durvilchat

    Participant

    hello please help me me I wan to loop all my topics in one page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mithrandir786

    Participant

    The code below loops through specified number of topics in the forum. eg ‘posts_per_page’ => 100 .
    Please the read the link included below.

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

    Link to topic:
    https://bbpress.org/forums/topic/display-list-of-topics-under-specific-forum/

    @mithrandir786

    Participant

    you could specify ‘posts_per_page’ => -1
    which will loop through all

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