Skip to main content

Shortcode Position Problem

Comments

6 comments

  • Tekin Yaşar

    Also, 

    in brizy editor shortcode position is none.

     

    0
  • Alex

    Hi,

    is this a custom shortcode? Does it work well on a WordPress simple page or in another builder? Did you test another shortcode? Does it behave the same?

    0
  • Tekin Yaşar

    Hi Alex,

     

    Yes it's custom shortcode and it is working well on WordPress simple pages. 

    Also as you ask, I have just tested a basic shortcode, just print 'hello' and the resault is same.

     

    0
  • Alex

    The thing is that it happens with custom-created shortcodes. I meant if you tested this with other shortcodes provided by a third-party plugin. eg "Contact Form 7" plugin that works with shortcodes. If it works well with other shortcodes then most likely it's because of the code.

    0
  • Tekin Yaşar

    Hi again Alex,

    Thank you for your support. I'm sharing the solution for brizy users.

    If you are printing any content on the screen with custom shortcode, use ob_start() and ob_get_clean() functions as described here:

    https://stackoverflow.com/questions/23334359/wordpress-shortcodes-in-the-wrong-place

    1
  • Alex

    Hi,

    thank you for sharing. This for sure will help others.

    0

Please sign in to leave a comment.