tribe events list filter shortcode not working

Home Forums Calendar Products Events Calendar PRO tribe events list filter shortcode not working

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1086991
    Matthew
    Participant

    I 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.
    #1087502
    Cliff
    Member

    Hi Matthew.

    Please reference our plugin’s shortcodes documentation and let me know if you have any follow-up questions.

    Thanks.

    #1087511
    Matthew
    Participant

    Yes, 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?

    #1087651
    Anne
    Participant

    think it’s that you have closed quotes ” on beginning of your tags and categories switch it should work

    #1087753
    Matthew
    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.

    #1087791
    Matthew
    Participant

    The 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
    #1087808
    Anne
    Participant

    I 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.

    #1087824
    Matthew
    Participant

    Anne – 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.

    #1087825
    Anne
    Participant

    yes 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!

    #1087826
    Anne
    Participant

    by 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.

    #1088028
    Cliff
    Member

    Hi. 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:

    1. Make sure you’re using the latest versions of WordPress and all our plugins.
    2. 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.

     

    #1088034
    Anne
    Participant

    Cliff – 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 😉

    #1088061
    Cliff
    Member

    Ok, 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

    #1094430
    Support Droid
    Keymaster

    This 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.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘tribe events list filter shortcode not working’ is closed to new replies.