Randa Clay Design
  • About
  • Portfolio
  • Articles
  • Site Map
Select Page

Use a shortcode in WordPress template files

by Randa Clay | Apr 2, 2010 | Scripts & Code, Templates

Shortcodes are designed to allow you to call certain plugin or built in theme functions within the post/page editor. This code snippet allows you to use shortcodes in a template file as well.

Use different single post templates based on category

by Randa Clay | Mar 30, 2010 | Scripts & Code, Templates

Need your single post views to be totally different depending on what category the post is in? You can do this easily by creating special single post files for each category as needed, and then replace the code in your single.php file with the following: <?php if...

Categories

Search

Stuff I Use (and Love)

  • Twitter
  • RSS

Designed by Elegant Themes | Powered by WordPress