Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Function to return all replies to a topic

@robin-w

Moderator

yes

$replies = bbp_has_replies( $args );

in \bbpress\includes\replies\template.php

it has these default args (some set by code above this section)

$default = array(
		'post_type'              => $default_post_type,         // Only replies
		'post_parent'            => $default_post_parent,       // Of this topic
		'posts_per_page'         => bbp_get_replies_per_page(), // This many
		'paged'                  => bbp_get_paged(),            // On this page
		'orderby'                => 'date',                     // Sorted by date
		'order'                  => 'ASC',                      // Oldest to newest
		'hierarchical'           => $default_thread_replies,    // Hierarchical replies
		'ignore_sticky_posts'    => true,                       // Stickies not supported
		'update_post_term_cache' => false,                      // No terms to cache

but whatever you pass in $args will overwrite these

Skip to toolbar