What about BuddyPress? We've now got a good understanding of how WordPress themes are structured. Let's take a look into BuddyPress themes.
We're going to first take a journey into some of the core things BuddyPress has that we saw in WordPress.
Remember the WordPress loop? BuddyPress also has loops for each content type. BuddyPress template files make use of these loops.
A typical BuddyPress loop takes the following format:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?> <?php while ( bp_members() ) : bp_the_member(); ?> Show entries in an unordered list <?php endwhile; ?> <?php else : ?> //Show no entry message <?php endif; ?>
The loops are found in: