• Resolved GermanKiwi

    (@germankiwi)


    Hi Stephen, I’ve just been configuring the “eo_fullcalendar” shortcode to add the full calendar to my webpage, using the various options listed here.

    I ran into a problem though with the “titleformatweek” attribute, which requires [square] brackets. I couldn’t figure out how to get these to work – as you know, square brackets aren’t allowed inside a shortcode. Finally I googled it and came across this thread which provides the solution to use double curved-brackets instead. Problem solved!

    However the next issue I found, and subsequently figured out for myself, is that the apostrophes used in the middle of the titleformatweek value also are a problem because apostrophes are also being used to surround the values of each attribute (in your examples).

    So this would not work:

    titleformatweek=’j(( F))(( Y)){ ‘–’ j F Y}’

    Instead, I needed to use quote marks around the entire value, with the apostrophes in the middle, like this:

    titleformatweek=”j(( F))(( Y)){ ‘–’ j F Y}”

    …Then the shortcode worked fine.

    One other point I noticed on your shortcode help page is that you’ve got your default values for “titleformatmonth” and for “titleformatday” mixed up with each other – they need to be swapped with each other! 🙂

    I thought I’d let you know about these points, so that you might update your help page to explain to other users how to use the double curved-brackets with the titleformatweek attribute, and how to use quote marks instead of apostrophes around all of the attribute values (particularly for the value of titleformatweek, but ideally all of them for consistency). It took me quite some time to figure out all these solutions for myself (but a nice, warm, fuzzy feeling after I did!) – but hopefully I can save some other users the trouble by making this suggestion! 🙂

    Cheers!

    https://wordpress.org/plugins/event-organiser/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Awesome, thank you posting this :).

    A dedicated site for documentation shall be launched this weekend, so I’ll make the corrections there. Thanks again!

    Thread Starter GermanKiwi

    (@germankiwi)

    Great – looking forward to that! 🙂

    Plugin Author Stephen Harris

    (@stephenharris)

    Just a post to say two things:

    1. Documentation can be found here: http://docs.wp-event-organiser.com/shortcodes/calendar (in case anyone was trying to find it) – the old page should redirect to the dedicated site

    2. 3.0.0 due to be released later this year will break this functionality (hopefully in a way that doesn’t break your site). That is support for the conditional “operators” are being removed, as part of the fullcalendar update (to 2.2.6). From 3.0.0 you give the calendar a format, and it decides automagically how to split it. E.g. “F Y” would be “January – February 2015” or “December 2014 – January 2015”.

    The aim for the plug-in to strip out the ((...)) and {...} mentioned above in away which means the date appears correctly without you having to change the shortcode attributes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issues with eo_fullcalendar shortcode documentation’ is closed to new replies.