List all occurrences on single and list templates

Home Forums Calendar Products Events Calendar PRO List all occurrences on single and list templates

  • This topic has 6 replies, 4 voices, and was last updated 9 years ago by inhouse.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1244533
    inhouse
    Participant

    Hello, we have updated to Pro 4.4.3 and need to list all event occurrences on the single and list templates. We used to use Advanced Custom Fields to list occurrences since TEC didn’t have flexible recurring event capability. I can’t figure out where this occurs in the default single-event template.

    Ideally we need the occurrence list to look like:

    • Friday, February 24 at 7:30 PM
    • Saturday, February 25 at 10 PM
    • Sunday, February 26 at 3 PM
    #1244643
    inhouse
    Participant

    Also noticed that the event list link is /event-calendar/event-title/2017-03-10 which then redirects to /event-calendar/event-title/2017-03-11 (2nd occurrence date) for some reason. Not sure why the date is included in the permalink structure at all actually. Ideally this would be removed. For reference, my permalink structure is /%category%/%postname%/ and the Events URL slug and Single event URL slug are both event-calendar.

    #1245172
    George
    Participant

    Hey there,

    We are unfortunately not able to assist with custom coding and getting our plugins to display or behave in any way that they don’t out-of-the-box.

    So when it comes to “listing all event occurrences on the single and list templates”, this is a code customization you’ll have to take the reins on.

    ⚠️ Please read more about this here: https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/


    In regards to the permalinks, a date is added for recurring events because they all share a title.

    Let’s say a recurring event has the title “Example Event”, and that it happens every day for 7 days in row.

    Well, if there’s no date appended to the single-event permalinks, that means that each of the 7 events would have this permalink:
    • example.com/%category%/example-event

    ↑ Having 7 different events try to exist at this one URL is not possible, and so each one gets its own URL with its specific date in the URL:
    • example.com/event/example-event/day-1
    • example.com/event/example-event/day-2
    • example.com/event/example-event/day-3
    • etc…

    Then there is the “all” page which shows all of the events:
    • example.com/event/example-event/all

    There is no way to modify this behavior, but I hope this explanation is useful to some degree nonetheless.

    Please let me know if there are any other issues or questions I can try to help with!

    — George

    #1245203
    inhouse
    Participant

    I understand this may be a little outside normal support; however, I finally found my previous support thread where I was assisted with a function that lists all occurrences. It was mostly working; however there was a bug with TEC Pro that we’ve waited to be patched before updating and moving over to using the built-in flexible recurring events. I’m simply trying to do what the /all permalink does and hopefully control the date/time format.

    Recurring Event Occurrences List

    #1246276
    George
    Participant

    Sure thing @inhouse. As Barry notes in that thread, we cannot help with custom coding, but certainly try to to help steer folks in the right direction.

    The extensive custom coding he shared in that thread, despite the rules described here, hopefully helps you get started on this. For updating, fixing, or tweaking that code, you’ll have to take the reins from here. Other than the /all/ permalinks themselves, there is not any way to do what the /all/ permalink does other than custom coding like this — I am sorry about these facts.

    In regards to date and time formatting, you can learn about how do this with PHP functions generally: http://php.net/manual/en/datetime.formats.date.php

    Or with WordPress functions specifically: https://codex.wordpress.org/Formatting_Date_and_Time

    While we will not be able to assist with custom coding, please let me know if there are any other issues or questions I can try to help with.

    Sincerely,
    George

    #1257337
    Support Droid
    Keymaster

    Hey 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘List all occurrences on single and list templates’ is closed to new replies.