add_image_size() for specific Post Types

Posted by Prem Tiwari | Updated on

I came up with following solution. It does create images only for custom post type without creating any additional ones. The only problem is that if you use plugins like advanced custom fields, when trying to render the gallery field it only shows the default wordpress images sizes: ‘thumbnail’, ‘medium’, ‘large’ and you cannot access custom post image sizes created.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers