Support » Themes and Templates » adding shortcode to a template

  • Hi wordpress people,
    I am trying to customize the menu for this site (a bit of a mess right now):

    I want to change the menu to give a list of all posts in a particular category, and I found a shortcode that does exactly this. it works if i put the shortcode into a post.

    but I want to put the shortcode into my sidebar template (which I am using to generate the horizontal nav bar). here WP simply writes out the shortcode, instead of running it.

    i did see this page, on how to put shortcode into a template: ( but the author describes inserting the shortcode into a “widget”. I don’t think my sidebar template has widgets.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding shortcode to a template’ is closed to new replies.