BuddyDev

Search

[Resolved] Rename Wall Photo

Tagged: 

  • Participant
    nickrobinson on #4847

    Hello,

    How do I rename Wall Photo Gallery to the <GROUP NAME> Wall Photo Gallery ? I have users belonging to multiple groups and when I create a page where they can see all the groups using shortcode [mpp-list-gallery] it shows all the Galleries from the Groups as ‘Wall Photo Gallery’ confusing the user, which Gallery is for which Group.

    -Nick

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #4850

    Hi Nick,
    Are you using MediaPress 1.0.6?

    If yes, It can be easily done.

    Step 1: Force MediaPress to avoid creating the context gallery on demand:-

    
    remove_filter( 'mpp_get_context_gallery', 'mpp_get_activity_wall_gallery', 10, 2 );
    
    

    Now, Provide your own context gallery helper by adding to the filter ‘mpp_get_context_gallery’ Please see how we do it in

    
    mpp_get_activity_wall_gallery()
    

    You can check the $args’component’] ==’groups’ to check it it is for groups wall gallery. Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #9884

    Marking it as resolved and closing due to lack of replies.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #9962

    With version 1.1.6 and above, there is a better way to do it.

    https://buddydev.com/support/forums/topic/rename-wall-photo-gallery-2/#post-9961

The topic ‘ [Resolved] Rename Wall Photo’ is closed to new replies.

This topic is: resolved