wordpress snippets last updated   : April 14, 2014
we now have 630 snippets

Automatically categorize and tag posts when saved

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you automatically categorize and tag posts when you save them. Don’t forget to add a new tag or a new category

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

Change admin area “pagination” posts per page

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you adjust the number of posts display within the admin area. By default wordpress will display 20 posts at a time within the admin area but you can change the number for the variable $per_page to display more or less.

read more

Add admin post column with wp_get_shortlink

wordpress snippet

Add the following snippet to the functions.php of your wordpress theme. This snippet will add a new column to the posts screen with an input field containing the wordpress shortlink. I added a little javascript to auto select the text.

read more

Display full post or just excerpt using custom fields

wordpress snippet

Adding this snippet to the loop of your wordpress theme within single.php or index.php will let you use a custom field value to define if a post is displayed in full or just the excerpt.

read more

Restricting authors to view only posts they created

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will restrict authors to view only posts they created within the admin panel.

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