Home › Forums › Calendar Products › Events Calendar PRO › Show all event occurrences with different dates in Recurring Event
- This topic has 7 replies, 2 voices, and was last updated 8 years ago by
bartmarkten.
-
AuthorPosts
-
March 1, 2018 at 12:11 am #1466821
bartmarkten
ParticipantHello ,
I use “tribe_get_events” function to list all events , and for recurring events they just show near by start date once for a specific event and not for all date occurrences.
But for one category I want to list events with all date occurrences for all recurring events , so is their any specific function for this?
Please guide me for that and I am a developer so i can customize code if needed , so Let me know.
Thanks.
March 2, 2018 at 2:30 am #1467998Andras
KeymasterHi bartmarkten,
Thanks for reaching out!
I believe this is the function you are looking for:
Here are more functions that have something to do with recurring events.
Let me know if you need further assistance.
Cheers,
AndrasMarch 4, 2018 at 10:58 pm #1469730bartmarkten
ParticipantHello ,
Thanks for the answer.
But I actually want a function which can list events like repeatedly as because they are recurring events.
This function (tribe_get_recurrence_start_dates ) will be giving all start dates of given event , but I want a function which can list all events like “tribe_get_events” and when it comes to recurring events it shows a rec curing event like 10 times if it has 10 occurrences with required start dates.There can also another option like if “tribe_get_events” function has some parameter like list all events with recursive start dates etc.?
Thanks.
-
This reply was modified 8 years, 1 month ago by
bartmarkten.
March 5, 2018 at 3:27 am #1469833Andras
KeymasterHello bartmarkten,
Oh yeah, now I see why that is not the best solution. Thanks for the more detailed explanation.
tribe_get_events should get you the full list including all recurrences. What might influence this is the Events > Settings >General tab > Recurring Event Instances setting. If you have that enabled then only the first instance of the series is shown. Try disabling that and check if that helps.
In case you need that enabled and you only want to disable it for certain cases, then let me know, I’ll try to cook up some solution.
Cheers,
AndrasMarch 5, 2018 at 4:00 am #1469852bartmarkten
ParticipantHey ,
Yes I want the solution for second case you wrote :
I have that option “Events > Settings >General tab > Recurring Event Instances setting” enabled.
I need that enabled and only want to disable it for certain cases (only one case ).
Please let me know who can i implement the same.
I can write filters/hooks also , please guide me for whatever is needed.
Thanks a lot.
March 6, 2018 at 2:44 am #1470798Andras
KeymasterA colleague was kind enough to help out with this.
Here’s the snippet that you can use.
https://gist.github.com/andrasguseo/7f8762bd8210b4bb1642b2ed1183acdd
For the snippet you need to have the ‘Recurring event instances’ setting unchecked, and then adjust the views in the snippet based on that.
If you want to have that option rather checked, then change this line in the snippet:
$query->query_vars['tribeHideRecurrence'] = 1;to
$query->query_vars['tribeHideRecurrence'] = 0;Let me know if that helps.
Cheers,
AndrasMarch 28, 2018 at 9:35 am #1490710Support 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 -
This reply was modified 8 years, 1 month ago by
-
AuthorPosts
- The topic ‘Show all event occurrences with different dates in Recurring Event’ is closed to new replies.
