updated   : April 22, 2013
we now have 608 snippets
category shortcode

Shortcode for HTML5 video in posts

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will create a new HTML5 video shortcode. Place the shortcode below in your posts to display your video.

read more

Display screenshot of any website using shortcode

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will let you use the bellow shortcode to display a screenshot of any website.

read more

Add Tweetmeme button to your post with shortcode

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add the Tweetmeme button to any location within your post.

read more

Countdown timer shortcode, display content after specified date

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will let you use a shortcode to place a countdown timer on specific content within your post. Add the shortcode within the second snippet to your post with content you want to display after the specified date. I added a class of event so you can style the display of the message anyway you wish, enjoy!

read more

Creating oEmbed-Based shortcodes

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will create a youtube shortcode. This is a simple sample of an oEmbed-Based shortcode.

read more

Embed Google books in your posts using shortcode

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will let you use shortcode to embed google books. Just because it took me a while to find the ISBN number to embed a book. Look at the top right of the page when viewing a book for “About This Book”. Click on about this book and at the very bottom of the page you will find the ISBN number.

read more

Creating nested shortcode concept

wordpress snippet

Surely I’m not the first but after recently being asked by a visitor about nested shortcodes I figure I would fool around with the idea. Adding this snippet to the functions.php of your wordpress theme will let you fool around with the following nested shortcode [link][my_text][/link]. No tricks just pass $content into do_shortcode() and works like a charm.

read more

iframe shortcode for posts and pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a new shortcode so that you can add an iframe in posts or pages to any URL.

read more