Hi Maurice,
Thank you for the question.
At the moment, It will need you to update the code for our group extension as we haven’t put the count in the title.If you are interested in that, Please do let me know.
Regards
BrajeshHi Maurice,
Please open mediapress/modules/buddypress/groups/mpp-bp-groups-group-extension.phpIn that file, on line 29, just before args, please add the following code
if ( bp_is_group() ) { $count = mpp_get_gallery_count( array( 'component' => 'groups', 'component_id' => groups_get_current_group()->id, ) ); } else { $count = 0; }
and then in the args, on line 29, Please change this
'nav_item_name' => __( 'Gallery', 'mediapress' ),
to
'nav_item_name' => sprintf( __( 'Gallery <span>%d</span>', 'mediapress' ), $count ) ,
That would do it.
Regards
Brajesh
Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘Gallery Counter in Groups Tab Bar’ is closed to new replies.
This topic is: not resolved