WordPress.org

Forums

Simple Calendar - Google Calendar Plugin
[resolved] Bug? Cutting off first character after shortcode tag (3 posts)

  1. Adam Ainsworth
    Member
    Posted 3 years ago #

    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/

  2. Ross Hanney
    Member
    Plugin Contributor

    Posted 3 years ago #

    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]
  3. Adam Ainsworth
    Member
    Posted 3 years ago #

    Yeah, got it :-)

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Calendar - Google Calendar Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic