Support » Plugin: ShortCodes UI » [Plugin: ShortCodes UI] Using shortcodes on Themes

  • Resolved 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

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

    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?

    Try this:

    <?php featured-link(); ?>

    If it doesn’t work, try echoing it:

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

    Plugin Author Bainternet



    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 ‘[Plugin: ShortCodes UI] Using shortcodes on Themes’ is closed to new replies.