wordpress snippets last updated   : July 14, 2014
we now have 634 snippets
category shortcode

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

Remove shortcode from home but not single posts

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will strip shortcode from your home page / index but not from single or archives posts.

read more
jqsnipp.com | we just launched jquery snippets website