What was wrong is the_post()
. It should be $query->the_post()
; instead.
So the correct loop would be
<?php
//...
while ($query->have_posts()) : $query->the_post(); ?>
<div id="forum-front" class="bbp-forum-front">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php //the_content(); ?>
<?php //bbp_get_template_part( 'content', 'archive-forum' ); ?>
</div>
</div><!-- #forum-front -->
<?php endwhile; ?>