Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to start a custom loop in bbpress 2.0?


  • janoochen
    Member

    @janoochen

    This is how I start a custom loop for a WordPress loop:

    <br />
    <?php $custom_posts = new WP_Query(); ?><br />
    <?php $custom_posts->query('post_type=post&category=Uncategorized&order=ASC'); ?><br />
    <?php while ($custom_posts->have_posts()) : $custom_posts->the_post(); ?><br />
    <div class="project"><br />
    <a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_post_thumbnail(); ?></a><br />
    <h2><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2><br />
    <p><?php echo get_post_meta($post->ID, 'rw_services', true); ?></p><br />
    </div><br />
    <?php endwhile; ?><br />

    How to start a custom loop in bbpress 2.0, For example, topics from a certain forum or category? (and even show the reply count?)

You must be logged in to reply to this topic.