Support » Plugin: Foundation Columns » Processing is kicking out any shortcodes

  • Resolved adambundy

    (@adambundy)


    I’m having an issue where I created a shortcode that inserts a chunk of content, and I am inserting it in between 2 column shortcodes. The chunk of content appears on the page before the row element that wraps all the ‘fc’ column divs. Would it be possible to process shortcodes inside fc column shortcodes?

    https://wordpress.org/plugins/foundation-columns/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author tormorten

    (@tormorten)

    I’m not able to recreate this issue. If I’m understanding you correctly, any shortcodes within a [fc]-shortcode are not processed? I’ve tested this issue and it seems to be working as expected here.

    Am I understanding the issue correctly?

    Thread Starter adambundy

    (@adambundy)

    @tormorten, what happens is that I have a custom shortcode that inserts some code, and when I place it inside an opening and closing column shortcode, it ends up outside the column div in the markup on the front-end.

    Thanks!

    Plugin Author tormorten

    (@tormorten)

    Is this a shortcode you have written yourself? Be aware that a shortcode should return its content, not echo it. If you echo the shortcode it will be printed outside of the content.

    See the Codex for more on this.

    I’ve tested it with native WP-shortcodes and some from other plugins (NextGen Gallery and Jiogshop) as well, and it working as expected.

    Thread Starter adambundy

    (@adambundy)

    @tormorten yep you’re exactly right. I did some reading up on widget coding best practices and converted my custom widget function to returning vs echoing and now all is well. Thanks for the tip!

    Plugin Author tormorten

    (@tormorten)

    Glad to help 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Processing is kicking out any shortcodes’ is closed to new replies.