Forums

Join
bbPress Support ForumsInstallationAdding Discussions from bbPress to WordPress manually

Info

Adding Discussions from bbPress to WordPress manually

  1. ok, so I added require_once('path/to/bbpress/bb-config.php'); to my wp-config.php file. I then added the bbpress discussions code:

    <table id="latest">

    <tr>

    <th><?php _e('Movie'); ?> — <?php new_topic(); ?></th>

    <th><?php _e('Posts'); ?></th>

    <th><?php _e('Last Poster'); ?></th>

    <th><?php _e('Freshness'); ?></th>

    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> <big>"><?php topic_title(); ?></big></td>

    <td class="num"><?php topic_posts(); ?></td>

    <td class="num"><?php topic_last_poster(); ?></td>

    <td class="num">"><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> "><?php topic_title(); ?></td>

    <td class="num"><?php topic_posts(); ?></td>

    <td class="num"><?php topic_last_poster(); ?></td>

    <td class="num">"><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $topics ?>

    </table>

    I added that code to my index.php file in my wordpress theme and this is what I get as the output in the browser:

    <table id="latest">
    <tr>
    <th>Movie — Add New »
    </th>
    <th>Posts</th>
    <th>Last Poster</th>
    <th>Freshness</th>
    </tr>

    </table>

    Obviously, there is something wrong. Does anyone know what?

  2. Can you past that code into something like pastebin or pastie? The formatting is lost displaying it here.

    Thanks.

    http://pastebin.com/
    http://pastie.org/

  3. You must log in to post.