WordPress.org

Support

Support » Plugins and Hacks » ShortCodes UI » [Resolved] [Plugin: ShortCodes UI] Using shortcodes on Themes

[Resolved] [Plugin: ShortCodes UI] Using shortcodes on Themes

  • DivinoAG

    @divinoag

    Is is possible to use shortcodes created with ShortCodes UI on my themes? I’m trying to include some shortcodes with the following code:

    <?php echo do_shortcode('[featured-link]'); ?>

    But when I look at the HTML page, WordPress is echoing [featured-link] instead of the content of my shortcode. Is there anything in particular I need to do, or are the shortcodes created not compatible with themes for some reason?

    http://wordpress.org/extend/plugins/shortcodes-ui/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Marventus

    @marventus

    Hi,

    the plugin documentation mentions short codes can be called as template tags. Have you tried that?

    DivinoAG

    @divinoag

    Hello,
    I see a mention of that on the Features list, but no actual documentation on how to do it, and the video also doesn’t say anything about it; I would assume that it is what I was doing. Do you know how that works?

    Marventus

    @marventus

    Try this:

    <?php featured-link(); ?>

    If it doesn’t work, try echoing it:

    <?php echo featured-link(); ?>

    Plugin Author Bainternet

    @bainternet

    Hi,

    the shortcodes are just like any other shortcode in WordPress which means that using :

    <?php echo do_shortcode('[shortcode_tag]'); ?>

    should , and does work just fine, make sure that your shortcode tags is set correct.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: ShortCodes UI] Using shortcodes on Themes’ is closed to new replies.
Skip to toolbar