• hello, what is the diffrenences between wordpress shortcodes?
    For example i’ve just installed a plug in and I am able to use shortcode of this plug in in page or post but not able to use it in specific php template…
    what is the main reason for it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • How are you calling the shortcode in your template files?

    Just as a FYI, the way to do this is using this sort of code:

    echo do_shortcode ('[shortcode_in_here]');

    That should be enough for the shortcode to be displayed in a template file.

    Thread Starter droidcan

    (@miciy)

    1.<?php do_shortcode(‘[shortcode]’)?>
    2.<?php echo do_shortcode(‘[shortcode]’)?>

    i tried both of them but not working

    I am using this plug in

    https://www.extendyourweb.com/wordpress/jquery-horizontal-scroller/

    So… What is showing? What errors are you seeing? What is it doing that it’s not meant to, or what isn’t it doing that it is meant to?

    As a tip, saying “doesn’t work” gives us absolutely nothing to go by. You really need to add more details so we can at least get some idea of what is actually happening.

    Thread Starter droidcan

    (@miciy)

    when I trying this code <?php echo do_shortcode('[scroller 1 /]')?> the output is [scroller 1 /]

    You don’t need to have the slash at the end. You can use

    [scroller 1]

    if the sortcode works that way.

    But if it’s not owrking there’s two choices. Either the plugin is installed but isn’t activated (which I don’t think is the case as you said that it works other places), or there’s a problem with the plugin, and if that’s the case you should ask the author about that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘diffrences between shortcodes’ is closed to new replies.