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

Shortcode to embed google trends graph in posts and pages

wordpress snippet

This Google trends shortcode will embed a graph of any comma separated query you enter to display a trend over time. Make sure to add a + between multiple words that are part of a single query. By default the geolocation is set to United States so change geo praram for another location.

read more

Automatically add the Google +1 button

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will automatically add the Google +1 button to your wordpress posts. This is a great little snippet from ottopress.com

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

Google charts shortcode, lines, xyline, sparkline, meter, scatter, venn, pie, pie2d

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will create a new shortcode that takes advantage of the Google charts API. This shortcode will let you display a range of charts “lines, xyline, sparkline, meter, scatter, venn, pie, pie2d” See the below shortcode example of a 3D pie chart. Change the type attribute in your shortcode to specify the type of graph you wish to display.

read more

Display search terms from google visitors

wordpress snippet

Adding this snippet to your wordpress template will let you display the google search terms visitors use to find your website.

read more

Display search terms from google

wordpress snippet

Add this PHP snippet to your wordpress theme. When users find your website via Google, the terms they used to find your site will be displayed.

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