Support » Plugin: My Calendar » [Plugin: My Calendar] Showkey Shortcode Not Working

  • Resolved taxihorn

    (@taxihorn)


    [my_calendar showkey=”no”] still shows the category keys…

    This was the case when My Calendar was installed in WordPress 3.0.2, and continues to be the case in 3.0.3.

    The help file states: “Setting showkey to no will prevent the category key from being displayed — this can be useful with single-category output.” And it would indeed be useful! Any ideas to make it go?

    http://wordpress.org/extend/plugins/my-calendar/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    My first guess would be that your shortcode has smart quotes (“”) surrounding the value “no”. If you replace them with standard quotes the shortcode should work.

    As it turns out, once I went to the HTML view, there was extraneous html code hiding in and amongst the shortcode. Thanks for the suggestion! While the smart-quote issue wasn’t the case, it did lead me to where the problem lay. I just have no clue as to why the visual editor would have placed in so many places… But that’s another matter entirely. Problem resolved!

    Before anything else, this is a gorgeous plugin!

    I was having the same issue on both a centos and Mac server with 3.0.3. I put the shortcode in the HTML side, and there were no smartquotes. I finally had to change the code to use boolean values, with a default of TRUE and using showkey=1 or showkey=0 to make it work.

    PHP is not one of my strongest languages, so I have no idea why this would happen. I hate to have modified code, but it was my only solution after a couple of hours.

    Any other ideas?

    Tom Auger

    (@tomaugerdotcomyahooca)

    It appears that the shortcode parser has changed. I’ve noticed this affecting a lot of plugins. The value that comes out of the shortcode now has the ” symbol included. IE: in the first instance it was getting literally “”no”” instead of “no”.

    This HAS to be an error in the shortcode parsing. For now, unless your attribute has a space in it, omit the quotes altogether.

    Plugin Author Joe Dolson

    (@joedolson)

    Strange. I’ve had no problems in any circumstance, using double quotes or single quotes (although smartquotes are definitely problematic.)

    However, if leaving the quotes off works, then that’s fine.

    Out of curiosity – what WP versions are you all using?

    I’m up to date. WordPress 3.0.3 and myCalendar 1.6.2

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: My Calendar] Showkey Shortcode Not Working’ is closed to new replies.