Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Thanks.

share|improve this question

1 Answer 1

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

 
discard

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.