WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question
up vote 0 down vote accepted

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.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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