Home › Forums › Calendar Products › Events Calendar PRO › tribe events list filter shortcode not working
- This topic has 13 replies, 4 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
March 9, 2016 at 10:35 pm #1086991
Matthew
ParticipantI purchased pro to be able to use shortcodes to filter my events. I’m using the following shortcode – [tribe_events_list category=”xyz”]. All it does is display every event published on the website. I’ve tried using tags as well as categories and neither works properly.
Need to get this fixed somehow or unfortunately I won’t be able to use the plugin.
Thoughts?
-
This topic was modified 10 years, 1 month ago by
Matthew.
March 10, 2016 at 2:51 pm #1087502Cliff
MemberHi Matthew.
Please reference our plugin’s shortcodes documentation and let me know if you have any follow-up questions.
Thanks.
March 10, 2016 at 3:21 pm #1087511Matthew
ParticipantYes, I am aware of the documentation. My problem still persists. The shortcode in the documentation does not filter based on tags or categories, it is simply listing all of the events published to site despite any tags or categories it is filed under.
My question is, am I doing something wrong and if so what? How do I use the shortcode to filter events based on categories and tags as it says it can do in the documentation?
For example, the documentation lists [tribe_events_list tags=”#1024, #2048, featured” category=”tickets-available”] entering this onto my page simply lists every single event published no matter the tags or categories.
Thoughts?
March 11, 2016 at 4:35 am #1087651Anne
Participantthink it’s that you have closed quotes ” on beginning of your tags and categories switch it should work
March 11, 2016 at 8:24 am #1087753Matthew
Participant[tribe_events_list tags=”#1024, #2048, featured” category=”tickets-available”]
How do you tell if your “” are open or closed in the WP interface? All other shortcodes on the site are working correctly without the quotation issue.
March 11, 2016 at 8:57 am #1087791Matthew
ParticipantThe shortcode simply does not filter. Once I removed the “#” from the tags section, the filter doesn’t work and will just display all the events published to the site. If I insert the ID# for the post I want to show, all it says it “There are no upcoming events at this time.”
The filter on the shortcode is not editable and does not work. It either displays all events or no events (“There are no upcoming events at this time.”). Unfortunately this is the one feature I purchased Pro for. Is this a bug or something I’m overlooking?
-
This reply was modified 10 years, 1 month ago by
Matthew. Reason: Try to make the issue more clear
March 11, 2016 at 9:13 am #1087808Anne
ParticipantI guess that wasn’t it i just saw that first off as a possible error. I’m trying mine to see if i can get the error too. But i’m only sorting using cat not tags.
March 11, 2016 at 9:56 am #1087824Matthew
ParticipantAnne – Thanks I noticed that too after posting to the forum.
Just FYI – I’ve tried using both tags and categories and it doesn’t make a difference either way. The minute I remove the tags category, filtering stops completely and it displays every published event.
For example:
[tribe_events_list tags=”#1024, #2048, featured” category=”tickets-available”] Displays “No Upcoming Events”. As it should since I have no tags or categories on my site that match these.
However, when I edit this code to the following:
[tribe_events_list category=”xyz”] it shows every event published.
What is strange is that when I edit the code to use the #ID tag of the post as follows, it displays “No Upcoming Events”
[tribe_events_list tags=”#1234″]
I’m having this issue on two separate servers.
March 11, 2016 at 9:57 am #1087825Anne
Participantyes it doesn’t work to filter down — i’m just making another tag or category on each thing to specifically filter – because i can’t get it to work either, like you want to filter out only the ‘rock_concerts’ with ‘tickets_avail’ it seems like you have to add another tag ‘rock_concerts_with_tickets’ – i can’t figure out how in the short code to do rock concerts + tickets only unless you do it that way — but then maybe it should be a category so it doesn’t show in your tag cloud but then it’s gonna show up other places. can a “modern tribe” person help out here – cause there are others out here trying to do the same thing thanks!
March 11, 2016 at 10:01 am #1087826Anne
Participantby rock concerts + tickets – I meant rock concerts only tickets avail, like if you have both in the short code it’s filtering out the ones without any ticket and only showing the ones with tickets.
March 11, 2016 at 3:04 pm #1088028Cliff
MemberHi. Thanks for helping each other. Hopefully this info helps both of you:
If it helps you to see the source code of the shortcode, it’s located at /wp-content/plugins/events-calendar-pro/src/Tribe/Shortcodes/Events_List.php
Before testing shortcodes:
- Make sure you’re using the latest versions of WordPress and all our plugins.
- Test with the Event List widget and see if that functionality is working (since the widgets and shortcodes are essentially the same, just in different forms)
I tested these shortcodes and they all worked:
[tribe_events_list category="6"](with or without the # sign)– which on my install is the same as[tribe_events_list category="bbq"](the Event Category slug, not the Event Category name)[tribe_events_list tag="#19"](did NOT work without the # sign) — the tag’s slug also worked (of course without a # sign)Please test if you get the same results on your sites.
Thank you.
March 11, 2016 at 3:46 pm #1088034Anne
ParticipantCliff – Yes thanks that all works fine.
I think the confusion is that we are looking for a short code to allow us to filter >>down<< the events + another category or tag and the documentation is making us think it will when it won’t it’s filtering >>up<< and it’s just adding to them. So is there a fix you all might be able to make for that?or — make the documentation say (user has to add and extra special tag, cat, or slug) so in the future (when u are surfing CR and we are new users lol) we aren’t freaking or maybe a another filter plugin link 😉
March 11, 2016 at 6:15 pm #1088061Cliff
MemberOk, so if I understand correctly, if you do
[tribe_events_list category="5,6"]it’s correctly pulling in events that are in either category ID 5 OR category ID 6, and you’re wanting a way to pull only events that are in BOTH categories 5 AND 6, correct?I see this is an option in the Event List widget that comes with PRO: http://cl.ly/422D1l0H0k1u
However, I don’t see that as part of our tribe_events_list shortcode.
I’ll double-check with a developer and get back to you. In the meantime, maybe you could use a widget? If you really need it in shortcode form, this exists (3rd party, no guarantees): amr shortcode any widget
March 26, 2016 at 9:35 am #1094430Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
This topic was modified 10 years, 1 month ago by
-
AuthorPosts
- The topic ‘tribe events list filter shortcode not working’ is closed to new replies.
