I do not have a "add group" button in the groups section. I can add a group through control panel or navigation directly to the create page but buddypress is not inserting the add group button into the group or profile section.
The buddypress forum says that this is caused by the_title() being used outside the loop. This is confusing to me, I have been adding in the_title() in various places but nothing has worked.
My main buddypress.php file in the root of my theme has the intial loop like this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><strong><?php the_title(); ?></strong></h2> <div class="row"> <div class="col-md-12"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?> <?php edit_post_link( __( 'Edit this page.', 'buddypress' ), '<p class="edit-link">', '</p>'); ?> </div> </div> <?php endwhile; ?> <?php endif; ?>
What exactly did I do wrong?
In my buddypress folder in my theme (copied from legacy) I have tried putting the_title() in the groups loops and in various places but it hasn't helped.
Does anyone know what they mean by moving the_title() inside the loop? It looks to me like I have done that.