Skip to content

Instantly share code, notes, and snippets.

@zacharydenton
Created December 21, 2010 15:26
Show Gist options
  • Save zacharydenton/750054 to your computer and use it in GitHub Desktop.
Save zacharydenton/750054 to your computer and use it in GitHub Desktop.
BuddyPress Album+ Loop
<div id="photos">
<?php bp_album_query_pictures('per_page=5'); ?>
<?php if ( bp_album_has_pictures() ) : ?>
<ul class="thumb">
<?php while ( bp_album_has_pictures() ) : bp_album_the_picture(); ?>
<li>
<a href="<?php bp_album_picture_middle_url(); ?>" title="<?php bp_album_picture_title(); ?>">
<img src='<?php bp_album_picture_thumb_url() ?>' alt="<?php bp_album_picture_desc(); ?>" />
</a>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment