Support » Plugins and Hacks » Simple Calendar - Google Calendar Plugin » Bug? Cutting off first character after shortcode tag

  • Resolved Adam Ainsworth

    (@adamainsworth)


    In the following code, the shortcode for the closing of ‘if not all day’ is cutting off the next character, whether or not it’s the start of an HTML tag, another shortcode tag or just a normal character.

    <strong>[start-date]</strong> [if-not-all-day]([start-time] - [end-time]) [/if-not-all-day]<br />[event-title]

    So in this case, it would cut off the < from the line break.

    http://wordpress.org/plugins/google-calendar-events/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ross Hanney

    (@rosshanney)


    Yeah, definitely a bug. I think it should already be fixed in the dev version of the plugin, but you can work around it in the current release by adding a line break between the closing [/if-not-all-day] shortcode and the <br> tag, like this:

    <strong>[start-date]</strong> [if-not-all-day]([start-time] - [end-time]) [/if-not-all-day]
    <br />[event-title]

    Yeah, got it 🙂

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug? Cutting off first character after shortcode tag’ is closed to new replies.