Remove load-newest from shortcode feed
-
Hi Brajesh,
I’m using your plugin to create a ‘sticky’ post area directly above my main activity feed – I’m pulling in posts from a single user into the shortcode feed, then excluding that user’s posts from the main BP feed so as to avoid displaying them twice.
My question is: can I remove the
load-newest
button in the shortcode instance of the feed? As it stands the button appears twice on the page (shown in this screenshot: https://www.dropbox.com/s/8zlmeqnsp8ajoqf/Screen%20Shot%202016-03-21%20at%2017.05.22.png?dl=0) and it’s causing issues within the feed.I’ve tried commenting out the following block in case it was how the load-more/pagination was being loaded, but it doesn’t seem to have an effect:
<?php if( $pagination ):?> <div class="pagination"> <div class="pag-count"> <?php bp_activity_pagination_count(); ?> </div> <div class="pagination-links"> <?php bp_activity_pagination_links(); ?> </div> </div> <?php endif;?>
It’s probably worth mentioning that I’ve also commented out the following so that it appears on the samepage as the main feed:
if( is_user_logged_in() && ( function_exists( 'bp_is_activity_component' ) && bp_is_activity_component() || function_exists( 'bp_is_group_home' ) && bp_is_group_home() ) ) return '';
Thanks for your help,
Graeme
- The topic ‘Remove load-newest from shortcode feed’ is closed to new replies.