Hi Terjemk,
Thank you for posting the topic.
It is easily doable. Can you please post me a screenshot and point me where would you like to see the count. I will post the code that will enable it.Thank you
Brajeshhttp://www.mactosh.net/image/gallery.jpg
Right where the red arrow points.
Hi,
here is the codeadd_filter( 'mpp_get_gallery_title', 'mpp_custom_inject_media_count_in_gallery_title', 10, 2 ); function mpp_custom_inject_media_count_in_gallery_title( $title , $gallery = null ) { //only show it on gallery home if( mpp_is_gallery_home() ) { $gallery = mpp_get_gallery( $gallery ); $count = absint( $gallery->media_count ); return "({$count}) {$title}"; } return $title; }
Please put it in your bp-custom.php or your theme’s functions.php and on user gallery page it will show the count.
Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘ [Resolved] Show number of pics in album list’ is closed to new replies.
This topic is: resolved