Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marco Chiesi

    (@marcochiesi)

    Black Studio TinyMCE Widget supports shortcodes but not php code.
    If you need to insert PHP code in a Black Studio TinyMCE Widget, you can create a custom shortcode (see Codex), or use the Shortcode Exec PHP plugin.
    Alternatively you may use the Enhanced Text Widget which is not wysiwyg however.

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks Marco, I’ll download the plugin and try it.
    Tony

    Thread Starter TonyWilliams

    (@tonywilliams)

    I’ve tried it Marco but when I add the short code for a slider in the Black Studio widget, the slider is shown outside the box not inside?
    Tony

    Plugin Author Marco Chiesi

    (@marcochiesi)

    Please specify which Slider plugin you are using and report the code you’re inserting into the widget.

    Thread Starter TonyWilliams

    (@tonywilliams)

    Hi I’m using MK Slider and the short code is [MK-SLIDER id=”1467″]
    Tony

    Plugin Author Marco Chiesi

    (@marcochiesi)

    Unfortunately the MK Slider does not respect WordPress coding standard about shortcodes:

    Note that the function called by the shortcode should never produce output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results. This is similar to the way filter functions should behave, in that they should not produce expected side effects from the call, since you cannot control when and where they are called from.

    You should report this odd behavior to MK Slider author, or use another slider.

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks I’ll try another slider. Can you suggest one that will work with your widget?
    Tony

    Plugin Author Marco Chiesi

    (@marcochiesi)

    … but there’s a lot of Slider plugins.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Short codes or php with Black Studio widget’ is closed to new replies.