Is there any solution for setting specific thumbnail size for any custom content type?


1 Answer 1


It seems to me the quickest way to do that is:

  1. Add your specific thumbnail size to functions.php. Here's the code to do it.
  2. Find the specific template file in your theme that displays your custom content type, then modify it to display your recently added thumbnail size. Use the following code, enter the specific thumbnail id you added in point 1 as the parameter.
  3. Additionally, you can use the AJAX Thumbnail Rebuild plugin so WordPress create thumbnails in your specific size. This is especially useful if you already have a running site with plenty of thumbnails in place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.