Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Discussions from bbPress to WordPress manually


  • parthatel
    Member

    @parthatel

    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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.