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

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

Enable post thumbnails

wordpress snippet

Adding the first block of PHP code to the functions.php of your wordpress will enable post thumbnails. Use one of the functions in the following block of code to display your thumbnails, full, medium or thumbnail.

read more