WordPress.org

Ready to get started?Download WordPress

Forums

Author Complete Post List
Serious Looping Issues (2 posts)

  1. Mystech
    Member
    Posted 3 years ago #

    Creates an endless list of same post over and over again. Can cause a crash.

  2. deepbevel
    Member
    Posted 3 years ago #

    Try it in sidebar.php

    Below-

    <?php /* Show forum tags on the forums directory */
    if ( BP_FORUMS_SLUG == bp_current_component() && bp_is_directory() ) : ?>
    <div id="forum-directory-tags" class="widget tags">

    <h3 class="widgettitle"><?php _e( 'Forum Topic Tags', 'buddypress' ) ?></h3>
    <?php if ( function_exists('bp_forums_tag_heat_map') ) : ?>
    <div id="tag-text"><?php bp_forums_tag_heat_map(); ?></div>
    <?php endif; ?>
    </div>
    <?php endif; ?>

    <?php dynamic_sidebar( 'sidebar' ) ?>

    <?php do_action( 'bp_inside_after_sidebar' ) ?>

    I added:

    <?php full_post_list($author, $curauth->user_login) ;?>

    I didn't use the code that counts total posts because it always shows up. The posts list only shows when in the author archive. Works out nicely!

    I had the loop thing happen too when I tried to use the code in other places, but works fine here.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic