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

Attachment window hide buttons and input fields

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will allow you to hide buttons and input fields within the media attachment window.

read more

Linking to all image sizes Flickr style

wordpress snippet

Adding this snippet to your wordpress theme will automatically link to all image sizes. Add the first snippet to the functions.php of your wordpress theme. Then add the second snippet to the image.php or attachment.php template of your wordpress theme.

read more

Restricting users to view only media library items they upload

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will restrict users to view only media library items they upload. They will still see the total number of files that are uploaded but will not be able to view them even if they type in the attachment_id.

read more

Media library URL column for easy copy and paste

wordpress snippet

Add this snippet to the functions.php of your wordpress theme to create a new column with the original file URL. I have had a few projects in the past that required a client to copy and paste a files URL into a custom field or metabox this will just make life a little easier. Thanks to Steve Taylor for this snippet, I just expanded on it a little with the input field and onclick select.

read more

add_image_size to your theme

wordpress snippet

Adding this PHP code to your functions.php will allow for additional images sizes within your theme.

read more

Re-attach library media

wordpress snippet

Adding this PHP code to your functions.php will add the ability add functionality that is missing in wordpress to re-attach media to posts.

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