wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category meta

Show absolutely all custom fields for each post

wordpress snippet

This snippet will display absolutely all custom fields for each post. Even custom fields you may not even be aware exist like _edit_lock and others. We have Justin Sternberg to thank for writing this snippet that was submitted a while ago as part of his tutorial on wordpress custom fields. Since this snippet is not available other than in the tutorial I figure it should be posted separately.

read more

Shortcode with micro formatted loop, meta, category, pagination

wordpress snippet

Here’s a neat little wordpress shortcode that allows posting of individual blog posts based on ID, latest number of blogposts from a certain category or all categories, optional pagination, optional excerpt or full content showing and optional meta.

read more

Display EXIF metadata in media library admin column

wordpress snippet

For anyone that uses wordpress for photography you should find this snippet useful. Adding this snippet to the functions.php of your wordpress theme will create a new column within the media library that will display EXIF metadata. Including, (credit, camera, focal length, aperture, iso, shutter speed, timestamp, copyright).

read more

Microformatted and HTML5 compliant loop

wordpress snippet

Why not replace your existing wordpress loop within your theme to a microformatted and HTML5 compliant loop.

read more

Unregister default widgets

wordpress snippet

Adding this to the functions.php of your wordpress theme will unregister the default wordpress widgets. Pick and choose what widgets you wish to unregister or all of them if you wish.

read more

Remove custom fields metabox

wordpress snippet

Adding this PHP code to your functions.php of your wordpress theme will remove the custom fields metabox from pages within your wordpress admin.

read more