Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created September 5, 2012 16:35
Show Gist options
  • Select an option

  • Save pippinsplugins/3639538 to your computer and use it in GitHub Desktop.

Select an option

Save pippinsplugins/3639538 to your computer and use it in GitHub Desktop.
Doesn't work
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div class="container" id="main-content">
<div class="row">
<div class="threecol sidebar" id="left-sidebar">
<?php get_sidebar('forum'); ?>
</div>
<div class="ninecol last entries" id="entries-wrap">
<div id="bbpress-forums">
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( bbp_user_can_view_forum() ) : ?>
<?php bbp_breadcrumb( array( 'include_home' => false, 'include_root' => false ) ); ?>
<?php if ( post_password_required() ) : ?>
<?php bbp_get_template_part( 'form', 'protected' ); ?>
<?php else : ?>
<?php bbp_single_forum_description(); ?>
<?php if ( bbp_get_forum_subforum_count() && bbp_has_forums() ) : ?>
<?php bbp_get_template_part( 'loop', 'forums' ); ?>
<?php endif; ?>
<?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php bbp_get_template_part( 'loop', 'topics' ); ?>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php bbp_get_template_part( 'form', 'topic' ); ?>
<?php elseif ( !bbp_is_forum_category() ) : ?>
<?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
<?php bbp_get_template_part( 'form', 'topic' ); ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
</div>
</div><!-- end .entries -->
</div><!-- end .row-->
</div><!-- end .container-->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment