• Hi, thanks for this plugin, it’s great!

    I have bumped into an issue, I hope you can help, I’ve been trying to use your shortcode without success.

    I am displaying a few galleries in the buddypress profile header, and I am using template tags / shortcode in the template file. Here it is:

    <?php $displayed_user_id = bp_displayed_user_id();//run the shortcode
    echo do_shortcode( "[mpp-list-gallery search_terms=featured component=members component_id={$displayed_user_id}]");?>

    I’ve set a couple of functions so that users can’t create galleries, or delete them, when they upload from the wall, they

    I am auto-creating a couple of galleries for each user, call them ‘featured videos’ and ‘featured photos’.

    When users post audio, video or photos to their walls, a gallery will be created for each, so I will end up with 5 galleries potentially.

    I want to allow audio upload, but not pull that one gallery out for display in my template file with the shortcode, leaving me with just 5 featured galleries on my template file. So how do I exclude the audio wall gallery with my shortcode?

    Nothing I try seems to work. Is there an ‘exclude’? I tried using search_terms to choose only video and photo for instance, but I must be making an error with formatting, because all items appear, I’m assuming because I’m rendering the code obsolete with an error. Can you give me an example of how to search for a few different items in search_terms so I can check what I’m doing? Or a way to exclude?

    Many thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    hi,
    Thank you for using the plugin.

    You can use the type parameter like

    type=’photo,video’

    That should filter our the audio.

    Please do let me know if that works or not?

    Thank you
    Brajesh

    Thread Starter Kir 2012

    (@kir-2012)

    Hi thanks for this, I switched audio off at the settings meanwhile and can’t seem to get it back on again to test it, I’ve saved, deleted cache etc, and audio remains off – have you come across that before?

    Thread Starter Kir 2012

    (@kir-2012)

    Also, I can see that using type has brought galleries belonging to all users into my display rather than just the current user profile. I need to display galleries from only that user, whose page I’m viewing.
    Thank you

    Thread Starter Kir 2012

    (@kir-2012)

    Also I have just been going through all of the features, I have disabled featured thumbnail covers for image galleries, so that it uses an image in the gallery.

    What are the options for display as the cover of a video gallery please?
    Thank you

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    I am sorry, I went away that day and missed this ticket.
    Are you still facing the same issue?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search_terms / exclude’ is closed to new replies.