Skip to:
Content
Pages
Categories
Search
Top
Bottom

show BP Album on other page


  • volvo_owmer
    Participant

    @volvo_owmer

    Hello

    I´m trying to show all members album on another page…
    I have follow this tutorial:
    http://zacharydenton.com/how-to-display-buddypress-album-images-anywhere/

    I whant to show the album in the www/album

    I have create a page called archive-gallery.php and add the code:

    <?php
    
    /**
    * Template Name: Gallery
    */
    
    ?>
    
    <?php get_header(); ?>
    	
    <div id="casing">
    <div id="content">
    		
    
    <div id="post">
    	<h3 class="section-title"><?php the_title(); ?></h3>
    	<div class="post-entry">
    <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>
    	</div>
    </div>
    
    </div>
    		
    <?php get_sidebar(); ?>
    <?php get_sidebar('homepage'); ?>
    <?php get_footer(); ?>

    Now i can only see it in the profile page.

    Hope that someone can help me.

  • The topic ‘show BP Album on other page’ is closed to new replies.
Skip to toolbar