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

Remove unneeded images / thumbnail sizes

wordpress snippet

Adding some or all of these lines of code to the functions.php of your wordpress theme will effectively remove some of the default images sizes that may be unneeded. Make sure to include both the _w _h for width and height,

read more

Display post attachment count in admin column

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will display the post attachment count in a custom admin column.

read more

Add a custom class to wp_get_attachment_link

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a custom class to wp_get_attachment_link.

read more

Display total number of PDF files in your media library

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will return the total number of PDF files within your media library.

read more

Check if post has more than one image attachment

wordpress snippet

Adding this snippet to your wordpress theme will let you determine if a post has more than one image attachment or modify the count to check for a specific number of image attachments.

read more

Add new column with media ID to media library

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a new column within the media library with the attachment ID.

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