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

  1. IILLC
    Posted 2 years 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.


  2. cubecolour
    Posted 2 years 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