I just stumbled across a cool way to oEmbed a Gist directly into a WordPress post. This means that rather than copying the js embed code from a Gist I can simply paste out the link to a Gist instead. Nice I had a little trouble getting it to work though. First I had to remove an … Continue reading oEmbed Gist into WordPress
I recently came across a great shortcode that I wanted to embed directly into a template, rather than use as a shortcode from within the admin area. If you ever need to do this you can use the do_shortcode function, and pass any necessary parameters as you would need. <?php echo do_shortcode('[shortcode with="parameters"]'); ?>
I recently did a workshop on building a WordPress theme with the Foundation framework. If you build your WP site with Foundation, you may find it helpful to use this plugin, Easy Foundation Shortcode, since it will give you more flexibility over the Foundation based styling you do from the content editor.
The Codex documentation on the Shortcode API shows just how easily you can add a shortcode to your site. There's a good tutorial on how to do this over on WP Tuts+