Search_terms / exclude
-
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 ??
- The topic ‘Search_terms / exclude’ is closed to new replies.