Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress on custom page – how to

Viewing 4 replies - 1 through 4 (of 4 total)

  • alexchenco
    Member

    @alexchenco

    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(); ?>


    alexchenco
    Member

    @alexchenco

    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(); ?>


    ePilipovic
    Member

    @epilipovic

    Hello,

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

    thanks


    ePilipovic
    Member

    @epilipovic

    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