Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to loop all topics in one view?

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

  • mithrandir
    Participant

    @mithrandir786

    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/


    mithrandir
    Participant

    @mithrandir786

    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