Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_members_loop


  • canister
    Participant

    @canister

    I have simple index.php like below, but the main page is not showing the buddypress members.
    Any hints welcome.
    (I have tried the chatgpt standard hints)

    <?php
    
    get_header();
    ?>
    
    <div id="primary" class="content-area">
        <main id="main" class="site-main">
    
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                <article>
                    <div class="entry-content">
                        <?php the_content();?>
                    </div>
                </article>
            <?php endwhile; endif; ?>
    
            <?php if ( is_home() && function_exists( 'bp_members_loop' ) ) : ?>
                <div class="members-loop">
                    <?php bp_members_loop(); ?>
                </div>
            <?php endif; ?>
    
        </main><!-- #main -->
    </div><!-- #primary -->
    
    <?php
    get_footer();
    
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar