# bbp-core/trunk/templates/loop-replies.php

Forumax – AI Powered Advanced Community Forum Plugin, version trunk. 32 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/trunk/code/templates/loop-replies.php
- Raw: https://pluginprobe.com/plugins/bbp-core/trunk/raw/templates/loop-replies.php
- Modified: 2026-01-28T15:54:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbp-core/trunk/code/templates/loop-replies.php#L10-L20`.

```php
<?php
/**
 * Replies Loop
 *
 * @package bbPress
 * @subpackage Theme
 */

// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

do_action( 'bbp_template_before_replies_loop' ); ?>

<?php if ( bbp_thread_replies() ) : ?>
    <?php
    bbp_list_replies(array(
        'style' => 'ul',
    ));
    ?>

<?php else : ?>

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>

        <?php bbp_get_template_part( 'loop', 'single-reply' ); ?>

    <?php endwhile; ?>

<?php endif; ?>

<?php do_action( 'bbp_template_after_replies_loop' );

```
