WordPress.org

Forums

WordPress Shortcodes
[resolved] How to add to template? (2 posts)

  1. IILLC
    Member
    Posted 1 year ago #

    Great work on the plugin, it seems to work great!

    Is there a way to add these to a template? I tried adding them to some template pages I am making in atahualpa and the [tab] are showing up instead of actually making the content tabs.

    When I put the code into a post it works. But when I add it to a template outside of a post it doesn't.

    Thanks for your help.

    http://wordpress.org/plugins/synved-shortcodes/

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    The syntax for adding a shortcode into a template is

    <?php echo do_shortcode("[shortcode]"); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Shortcodes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic