Issues with eo_fullcalendar shortcode documentation
-
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!
- The topic ‘Issues with eo_fullcalendar shortcode documentation’ is closed to new replies.