Home › Forums › Calendar Products › Events Calendar PRO › shortcode doesnt work
- This topic has 9 replies, 3 voices, and was last updated 9 years, 1 month ago by
Marcel.
-
AuthorPosts
-
March 17, 2017 at 8:58 am #1255851
Marcel
ParticipantHi,
I had a Problem with list view of the shortcode. As i had understand i can use view filter and date filter. So i become [tribe_events view=”list” date=”2017-03″] and this shortcode must display list of events in March, but it displays all events. Can you help me with this. Maybe i write this shortcode wrong?March 17, 2017 at 6:50 pm #1256176Victor
MemberHi Marcel!
Thanks for reaching out to us! 🙂
It seems you are using the shortcode correctly, but with curly quotes.
Make sure that if you use quotation marks in your shortcodes, they are only “straight quotes” and are not “curly quotes.” If you’re not sure what this means, then the simplest way to see the difference between the quotes is to look at a screenshot like this > https://cloudup.com/iNf33Mzs2g4
Let me know if that solves the issue and if it doesn’t I will be happy to assist you.
Best!
Victor
March 21, 2017 at 1:49 am #1257142Marcel
ParticipantHi Victor,
I had used this straight quotes in the schortcode [tribe_events view=”list” date=”2017-03″], but is doesn’t help(( I become a list of all events instead of events for March only
Thanks for help,
MarcelMarch 21, 2017 at 2:22 am #1257156Marcel
ParticipantMarch 21, 2017 at 5:47 am #1257208Victor
MemberHey Marcel!
Sure! Here is the code >
[tribe_events view="list" date="2017-03"]You can also use single quotes like this >
[tribe_events view='list' date='2017-03']Please try it and let me know if it works for you.
Best!
Victor
March 21, 2017 at 6:08 am #1257214Marcel
ParticipantHi Victor,
I had understood, shortcode actually works, but this code will show not events just in March but all events fromm March till the number of this events. Then have I a question: can I limit number of events or show just events in March?
Thanks,
MarcelMarch 21, 2017 at 7:37 am #1257257Victor
MemberHey Marcel!
I am sorry I misunderstood your request.
Unfortunately, there is no default way to limit the shortcode to only show events in March. Actually, the date attribute in the shorcode means “to show events starting 2017-03”.
However, this is something we are definitely taking into account in our list of upcoming features. I encourage to vote for it here > https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/17229266-add-limit-x-option-to-tribe-events-shortcode
Eric here > https://theeventscalendar.com/support/forums/reply/1217300/
shared a snippet of code that would help you achieve that. As he also notes, it is a bit of a hack but it should work on most servers.I hope that helps and let me know if any other questions.
Good luck!
Victor
March 21, 2017 at 7:56 am #1257269Marcel
ParticipantThanks a lot)))
March 21, 2017 at 8:42 am #1257292Victor
MemberYou are very welcome Marcel! I’m glad to be of help.
I’ll go ahead and close this thread now, but feel free to open a new topic if you have other questions and we’ll be happy to help.
Best of luck with your project!
Victor
-
AuthorPosts
- The topic ‘shortcode doesnt work’ is closed to new replies.
