Source

elbee-elgee / archive-topic.php

The default branch has multiple heads

Diff from to

File archive-topic.php

 
 				<?php do_action( 'bbp_template_notices' ); ?>
 
-				<?php while ( have_posts() ) : the_post(); ?>
+				<div id="topic-front" class="bbp-topics-front">
+					<h1 class="entry-title"><?php bbp_topic_archive_title(); ?></h1>
+					<div class="entry-content">
 
-					<div id="topics-front" class="bbp-topics-front">
-						<h1 class="entry-title"><?php the_title(); ?></h1>
-						<div class="entry-content">
+						<?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
 
-							<?php bbp_breadcrumb(); ?>
+					</div>
+				</div><!-- #topics-front -->
 
-							<?php do_action( 'bbp_template_before_topics_index' ); ?>
-
-							<?php if ( bbp_has_topics() ) : ?>
-
-								<?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
-
-								<?php bbp_get_template_part( 'bbpress/loop',       'topics' ); ?>
-
-								<?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
-
-							<?php else : ?>
-
-								<?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
-
-							<?php endif; ?>
-
-							<?php do_action( 'bbp_template_after_topics_index' ); ?>
-
-						</div>
-					</div><!-- #topics-front -->
-
-				<?php endwhile; ?>
-
-<?php get_template_part( 'bbp-wrapper-footer' ); ?>
+<?php get_template_part( 'bbp-wrapper-footer' ); ?>