Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress on custom page – how to

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try this:

    – You first have to start the WordPress Loop

    – Then call the get_template _part() function to get the forum template.

    <?php
    /*
    Template Name: Forum
    */
    @ePilipovic

    /**
    * @package WordPress
    * @subpackage Default_Theme
    */

    get_header(); ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <div id="forum-front" class="bbp-forum-front">
    <div class="entry-content">

    <?php the_content(); ?>

    <?php get_template_part( 'loop', 'bbp_forums' ); ?>

    <?php get_template_part( 'form', 'bbp_topic' ); ?>

    </div>
    </div><!-- #forum-front -->

    <?php endwhile; ?>

    <?php get_footer(); ?>

    Try this:

    – You first have to start the WordPress Loop

    – Then call the get_template _part() function to get the forum template.

    <?php
    /*
    Template Name: Forum
    */
    @ePilipovic

    /**
    * @package WordPress
    * @subpackage Default_Theme
    */

    get_header(); ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <div id="forum-front" class="bbp-forum-front">
    <div class="entry-content">

    <?php the_content(); ?>

    <?php get_template_part( 'loop', 'bbp_forums' ); ?>

    <?php get_template_part( 'form', 'bbp_topic' ); ?>

    </div>
    </div><!-- #forum-front -->

    <?php endwhile; ?>

    <?php get_footer(); ?>

    Hello,

    I tried this but the forum didn’t show up ony header and footer.

    thanks

    Hello,

    I tried this but the forum didn’t show up ony header and footer.

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar