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

  1. Adam Ainsworth
    Posted 1 year 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.


  2. Ross Hanney
    Plugin Contributor

    Posted 1 year 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
    Posted 1 year ago #

    Yeah, got it :-)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Calendar Events
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic