Hi Brajesh,
Last year you helped me create a members profile view that had the members profile settings displayed first and then the members activity.
What we effectively did was to add the contents of activity.php to the end of the profile,php.
This works fine, however I would like to limit the number of items displayed in the activty list to say 10 items. How would I do this please?
Hi George,
Please put this code in your bp-custom.phpfunction buddydev_limit_number_in_activities( $args ) { if ( bp_is_user_activity() ) { $args['per_page'] = 5; //how many? } return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_limit_number_in_activities' );
Also, please change 5 to the number of activities you want to display.
Hope that helps.
Regards
BrajeshDo you have a bp-custom.php in your wp-content/plugins directory? If yes, Please put it there or you may put it in your functions.php
Hope that helps.
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
This topic is: resolved