Skip to:

Search Results for 'the_excerpt'

Viewing 4 results - 26 through 29 (of 29 total)
  • Author
    Search Results
  • #40023

    When I load the sidebar with the_content(), the_excerpt() or similar content function in custom loop before the main loop on page the forums (their contents) are displayed through that function in the sidebar.

    So I can’t use these content function before the main loop on page template? It seems to me bbPress is hooking the first function of this kind (the_content(), the_excerpt()…) on a page.

    I suppose bbPress plugin should avoid this to prevent malfunction in some themes.


    Genesis has 2 functions that I have determined are causing the problems. (/genesis/lib/structure/post.php lines 101-143 (as of 1.7.1))

    The first function is the post image function. Users have the ability to automatically set image thumbnails to appear on the archive listings. However if they turn this on, when you go to a bbPress archive page a random image from the media library ends up on the top of the page. This is turned of by default in Genesis, but is widely used.

    The second function is how Genesis displays post content. You can see, depending on how the user has Genesis configured, it uses the_excerpt or the_content_limit – which results in a dead loop.

    The other things I did such as remove the post info/meta, breadcrumbs, etc are just purely cosmetic. They aren’t *needed* per say, but it can look screwy if they are outputted on some of the forum pages.

    As long as Genesis is forced to always use the_content and the post image option is nuked, everything should always work smoothly.

    If you want to explore the option of a core patch I’d be more than happy to help you with a patch and testing :)


    I recently started using this WordPress PHP implementation of the Markdown

    Right now it only supports Posts and Comments. Topics and Replies don’t get aprsed.

    This comes from markdown.php:

    # Post content and excerpts
    # - Remove WordPress paragraph generator.
    # - Run Markdown on excerpt, then remove all tags.
    # - Add paragraph tag around the excerpt, but remove it for the excerpt rss.
    remove_filter('the_content', 'wpautop');
    remove_filter('the_content_rss', 'wpautop');
    remove_filter('the_excerpt', 'wpautop');
    add_filter('the_content', 'Markdown', 6);
    add_filter('the_content_rss', 'Markdown', 6);
    add_filter('get_the_excerpt', 'Markdown', 6);
    add_filter('get_the_excerpt', 'trim', 7);
    add_filter('the_excerpt', 'mdwp_add_p');
    add_filter('the_excerpt_rss', 'mdwp_strip_p');

    remove_filter('content_save_pre', 'balanceTags', 50);
    remove_filter('excerpt_save_pre', 'balanceTags', 50);
    add_filter('the_content', 'balanceTags', 50);
    add_filter('get_the_excerpt', 'balanceTags', 9);

    How to modify the line above to be effective for Topics and Replies?


    I would like to know how to start a custom bbPress loop to display the recent 5 posts of a certain forum (say Forum Test 1).

    In WordPress I create custom loops like this:

    `<?php $custom_posts = new WP_Query(); ?>

    <?php $custom_posts->query(‘post_type=bbp_topic&posts_per_page=5’); ?>

    <?php while ($custom_posts->have_posts()) : $custom_posts->the_post(); ?>

    <div class=”block-2 border-top”>

    <h2><a href=”<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></a></h2>

    <?php the_excerpt(); ?>

    <p><?php comments_number(‘0 Replies’,’1 Reply’,’% Replies’); ?>.</p>


    <?php endwhile; ?>`

    How to do what I mentioned above in bbPress 1.1?

Viewing 4 results - 26 through 29 (of 29 total)
Skip to toolbar