Asking for help to paginate custom activity feed
Hi, I am trying to paginate my buddypress custom post-type activity feed, with the custom type being FB link submissions. Could someone please help me? I am wanting 5 to show per page, with either a “Show More” button or pagination at the bottom so users can navigate to the other (older) posts.
Here is the code I am currently using:
$args = array('post_type' => 'fb_url_submit');
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
<div class="fb-page" data-href="<?php echo get_post_meta(get_the_ID(), 'fb_url_submit_link', true); ?>" data-tabs="timeline" data-width="340" data-height="130" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false" hide_cta="true"></div>
- The topic ‘Asking for help to paginate custom activity feed’ is closed to new replies.