Implementing a calendar grid shortcode

Home Forums Calendar Products Events Calendar PRO Implementing a calendar grid shortcode

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15681
    Hector
    Participant

    I’ve been reading in the forum that it is not possible to show a calendar grid using shortcodes, since i am a little stubborn i decided to implement my own shortcode and think i accomplished it.

    first i created the shortcode in my functions.php with the following parameters: cat, month and year
    code for functions.php —> http://pastie.org/3452109

    then i copied the table.php file to the events directory in my theme and changed the code in the begining with this —> http://pastie.org/3452196

    so far it is working on my site (localserver) without problems. I know the code is still rough around the edges and there is a lot of room for improvement but i would like to hear what is your experience with this code and how does it work on your site.

    #15794
    Rob
    Member

    Hey Hector. Interesting; glad to see you’re the type who is willing to take a stab at it. Not sure about this myself or the implications of using it, but let me see if a dev on our end can take a look and share any insights. Thanks man!

    #16027
    Mike
    Participant

    I’d *really* like to see a shortcode for the calendar, it’s too inflexible the way it currently is.

    #16070
    Rob
    Member

    Hector: thanks again for this. Solid work. I had our dev review it and he can confirm that this is functional, though we would definitely caution against using a global to store the event array. We’d advise that anyone using this code approach with caution unless you have a real solid understanding of WordPress dev and what the code here will do. That being said Hector’s tip here has got us talking on how we could better approach this in our code down the road.

    Mike: appreciate the note here. Official shortcode support isn’t planned for the 2.1 release, but as mentioned above we have seen an uptick in requests for it so it’s a conversation we’re currently having. Any votes for it thrown into the “Feature Request” thread (https://theeventscalendar.com/support/forums/topic/events-calendar-pro-feature-requests/) will also certainly be given some bearing.

    Thanks again, guys! Let me know what else we can do.

    #975841
    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 ‘Implementing a calendar grid shortcode’ is closed to new replies.