wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Remove thumbnail support from a specific post type

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove thumbnail support from a specific post type. Change POST_TYPE text to either a custom post type name or post, page to remove support for thumbnails.

read more

Change set featured image text within admin

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will change the “Set featured image” text to “Set default image” or what you would like.

read more

Auto link post thumbnails to the post permalink

wordpress snippet

Adding this code to the functions.php of your wordpress theme will Automatically link all post thumbnails to the post permalink.

read more

Featured / post thumbnail image caption

wordpress snippet

Add the first block of code to the functions.php of your wordpress theme, then add the second block within the loop of the desired template file, single.php or, index.php to display featured image caption.

read more

Set post thumbnail size

wordpress snippet

Adding this to the functions.php of your wordpress theme will allow you to set the default thumbnail size.

read more

Set default the_post_thumbnail

wordpress snippet

Adding this code snippet to your wordpress loop will check if a post thumbnail exists and if not display a default image named img-default.png.

read more