Quantcast
Channel: Snippets – WPcustoms
Viewing all articles
Browse latest Browse all 22

Create new image sizes for custom post types

$
0
0

By default WordPress creates three images sizes for every picture uploaded to your media library. If you want to create a new size for custom post types you can copy this code to your functions file. So instead of using "thumbnail" you can use "your_image_size_1" or whatever you decide. Make sure to set values for your new size with the add_image_size function

WPcustoms


Viewing all articles
Browse latest Browse all 22

Trending Articles