WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
[resolved] Showkey Shortcode Not Working (7 posts)

  1. taxihorn
    Member
    Posted 3 years ago #

    [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/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  3. taxihorn
    Member
    Posted 3 years ago #

    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!

  4. favog
    Member
    Posted 3 years ago #

    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?

  5. Tom Auger
    Member
    Posted 3 years ago #

    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.

  6. Joe Dolson
    Member
    Plugin Author

    Posted 3 years ago #

    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?

  7. favog
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic