To insert code use <code>...</code>.
Gigpress Plugin - linebreaks are inserted when using its shortcode in page content
  • I have found a very weird bug.

    Apparently, the theme is filtering `the_content()` after shortcodes have been processed. This is causing problems with a very popular plugin, gigpress.com, used for displaying tour dates for musicians.

    The list of dates is inserted via a shortcode. The theme is inserting <br> linebreaks for every line break in the PHP code, breaking the layout of the resulting HTML code that is displayed on the post.

    How can I fix this?
  • 2 Comments sorted by
  • HI

    Its not a theme bug, but a compatibility issue with that plugin. But the way to resolve it most likely is that when you place the shortcode for the plugin into content, wrap it in the raw tag like such:

    [raw] [shortcode] [/raw]

    This should enable your plugin to work properly. We built in the raw tag to handle matters just such as this - and most often it works! Please advise back so if it is resolved, we can close the thread. As Paul also reminded, make certain there are spaces between the codes, so that you have the opening raw tag, a space, the shorcode, space, then the closing raw tag.

    Happy Striking
    Striking Team
    James
  • You guys rock! I'm impressed! :)
This discussion has been closed.
All Discussions