WordPress is full of some great features, although sometimes you need to add something extra like the following snippet making WordPress just a little easier to use. This snippet will add a new custom field select menu to your WordPress post, page listings. The menu will display a list of all custom fields, just select the field you want to filter by. This snippet is only for the wp-admin however If you wanted to do any sort of filtering on the front end of your site. View the following snippet that will let you filter by category using search.

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.

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.

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.

About wpsnipp

WPSNIPP Was founded in 2010 by Kevin Chard and is a free resource dedicated to WordPress covering a wide range of topics. With over 640+ WordPress snippets, we also have tutorials, plugins, gallery and deals to enhance all aspects of your WordPress theme or blog.