Changeset 3224
- Timestamp:
- 05/25/2011 09:30:09 AM (13 years ago)
- Location:
- branches/plugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-forum-template.php
r3199 r3224 86 86 $default = array ( 87 87 'post_type' => bbp_get_forum_post_type(), 88 'post_parent' => bbp_get_forum_id(),88 'post_parent' => is_post_type_archive( bbp_get_forum_post_type() ) ? 0 : bbp_get_forum_id() , 89 89 'post_status' => implode( ',', $post_stati ), 90 90 'posts_per_page' => get_option( '_bbp_forums_per_page', 15 ), -
branches/plugin/bbp-themes/bbp-twentyten/archive-forum.php
r3182 r3224 17 17 <?php do_action( 'bbp_template_notices' ); ?> 18 18 19 <?php while ( have_posts() ) : the_post(); ?> 19 <div id="forum-front" class="bbp-forum-front"> 20 <h1 class="entry-title"><?php _e( 'Forums', 'bbpress' ); ?></h1> 21 <div class="entry-content"> 20 22 21 <div id="forum-front" class="bbp-forum-front"> 22 <h1 class="entry-title"><?php the_title(); ?></h1> 23 <div class="entry-content"> 23 <?php do_action( 'bbp_template_before_forums_index' ); ?> 24 24 25 <?php do_action( 'bbp_template_before_forums_index' );?>25 <?php if ( bbp_has_forums() ) : ?> 26 26 27 <?php if ( bbp_has_forums() ) :?>27 <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?> 28 28 29 <?php bbp_get_template_part( 'bbpress/loop', 'forums' );?>29 <?php else : ?> 30 30 31 <?php else :?>31 <?php bbp_get_template_part( 'bbpress/no', 'forums' ); ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/no', 'forums' ); ?>33 <?php endif; ?> 34 34 35 <?php endif; ?>35 <?php do_action( 'bbp_template_after_forums_index' ); ?> 36 36 37 <?php do_action( 'bbp_template_after_forums_index' ); ?> 38 39 </div> 40 </div><!-- #forum-front --> 41 42 <?php endwhile; ?> 37 </div> 38 </div><!-- #forum-front --> 43 39 44 40 </div><!-- #content -->
Note: See TracChangeset
for help on using the changeset viewer.