O'Reilly logo

BuddyPress Theme Development by Tammie Lister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How BuddyPress themes work

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.

BuddyPress loops

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:

  • Activity loop: The loop to show ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required