3.0 + – Template code not working for custom category page

Home Forums Calendar Products Events Calendar PRO 3.0 + – Template code not working for custom category page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #55221
    Brian
    Participant

    I have a custom page template , and need to show a grid view calendar from a single events category in that template. Before upgrading to 3.0, it was working.

    Now, I’m getting an error : Fatal error: Cannot redeclare display_day_title() (previously declared etc…..

    Where is the documentation for 3.0 ? Template tags etc ? All of the documentation pages say
    “Please note that all documentation below is for The Events Calendar 2.0.1 through 2.0.11. Documentation for version 3.0 and beyond is available on our main documentation page.”

    Where is this documentation?

    #55411
    Jonah
    Participant

    Hi Brian,

    All the new documentation lives at http://docs.tri.be/ – in order to know what’s going on with your code, I’d need to take a look at it so I can test it out locally. Can you please post it to http://snippi.com/?

    Thanks,
    Jonah

    #55416
    Brian
    Participant

    Hi Jonah,

    Thanks. Here’s the code in my custom template that was working before upgrading to 3.0+ – http://snippi.com/s/2i7p2x9

    It’s basically showing the grid view calendar of events from one category. In 3.0+ I get the error “Fatal error: Cannot redeclare display_day_title() (previously declared etc…..”

    #55515
    Jonah
    Participant

    Hi Brian,

    Unfortunately that code will no longer work. It was more of a solution we were patching together rather than something that was officially supported, so that’s why it no longer works now. You’ll need to patch something together more along the lines of what’s been posted here to get this working again: https://theeventscalendar.com/support/forums/topic/lost-display-of-calendar-on-home-page-after-update-to-3-0-1/ – and even then it might not be a perfect solution or exactly how it was working before.

    Sorry I don’t have more to offer here.

    – Jonah

    #979682
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘3.0 + – Template code not working for custom category page’ is closed to new replies.