Home › Forums › Calendar Products › Events Calendar PRO › Start and end date, category attributes not working on shortcode?
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by
tpdweb.
-
AuthorPosts
-
July 20, 2018 at 1:44 pm #1580424
tpdweb
ParticipantI’m trying to use the shortcode attributes fromdate, todate and category to display only events in the “availability” category between July 1, 2018 and August 31, 2018.
I’ve set up 5 test events(screenshot attached).
I’m using this code:
<?php echo do_shortcode('[tribe_events tribe-bar="false" category="availability" fromdate="2018-07-01" todate="2018-08-31"]'); ?>Seems straightforward enough to me, but it’s still spitting out all events regardless of date or category(screenshots attached).
Is there a comprehensive list of shortcode attributes anywhere? The Events Calendar documentation often seems lacking in depth – there’ll be a mention of 5 – 10 things you can do with a particular feature like shortcodes or queries, but there doesn’t seem to be an exhaustive list of every attribute or every variable? I found a listing on an unrelated site, but the info was out of date.
July 23, 2018 at 5:46 am #1581333Jaime Marchwinski
KeymasterHi Vanessa,
Thanks so much for reaching out!
The following articles can provide you with the full list of available shortcodes:
- https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/
- https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/
Let me know if that helps!
Thanks,
Jaime
July 23, 2018 at 7:43 am #1581441tpdweb
ParticipantHey Jaime,
Thanks for getting back! Yea, I’ve looked at those links, unfortunately the documentation is pretty sparse – it only gives a handful of common uses. Is there a docs page with a listing of all available shortcode attributes?
For example, this page has a whole listing of attributes. But, it’s not an official one and some of the stuff appears to be outdated or incorrect.
Can you tell why the category attribute wouldn’t be working? That one seems pretty straightforward and I’m using it exactly as it’s listed in the docs you sent.
July 24, 2018 at 3:03 am #1582076Jaime Marchwinski
KeymasterHi Vanessa,
The page that you linked to is for a third-party plugin that we have no affiliation with. If you are having issues with those shortcodes, you may want to reach out to the plugin developer there.
Let me know if you have any questions for us related to this issue!
Thanks,
Jaime
August 15, 2018 at 9:35 am #1598107Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Start and end date, category attributes not working on shortcode?’ is closed to new replies.
