185 posts
  • 6 Years of Membership
  • Exclusive Author
partnuz
says

Hi

I use set_post_thumbnail_size(200,200) settings to change default thumbnail size from 150 to 200 pixels. However it seems that this function is overriden by settings from admin panel.

3256 posts
  • Affiliate Level 4
  • Author Level 9
  • Collector Level 2
  • Top Monthly Author
+11 more
ParkerAndKent
says
partnuz said
Hi I use set_post_thumbnail_size(200,200) settings to change default thumbnail size from 150 to 200 pixels. However it seems that this function is overriden by settings from admin panel.

Did you regenerate the thumbs? When you change the sizes all the uploaded images will keep the old settings until regeneration. You can use a plugin to regenerate all your images or upload them again.

Parker

119 posts Too Much is Never Enough
  • Elite Author
  • Featured Author
  • Weekly Top Seller
  • Author Level 8
+4 more
premitheme
says
ParkerAndKent said
partnuz said
Hi I use set_post_thumbnail_size(200,200) settings to change default thumbnail size from 150 to 200 pixels. However it seems that this function is overriden by settings from admin panel.

Did you regenerate the thumbs? When you change the sizes all the uploaded images will keep the old settings until regeneration. You can use a plugin to regenerate all your images or upload them again.

Parker

+1 , Ajax Thumbnail Rebuild is a great tool for this task.

185 posts
  • 6 Years of Membership
  • Exclusive Author
partnuz
says
ParkerAndKent said
partnuz said
Hi I use set_post_thumbnail_size(200,200) settings to change default thumbnail size from 150 to 200 pixels. However it seems that this function is overriden by settings from admin panel.

Did you regenerate the thumbs? When you change the sizes all the uploaded images will keep the old settings until regeneration. You can use a plugin to regenerate all your images or upload them again.

Parker

Yeah I’m fully aware of that. However this function still doesnt work and uses settings from admin panel.

3256 posts
  • Affiliate Level 4
  • Author Level 9
  • Collector Level 2
  • Top Monthly Author
+11 more
ParkerAndKent
says
partnuz said
ParkerAndKent said
partnuz said
Hi I use set_post_thumbnail_size(200,200) settings to change default thumbnail size from 150 to 200 pixels. However it seems that this function is overriden by settings from admin panel.

Did you regenerate the thumbs? When you change the sizes all the uploaded images will keep the old settings until regeneration. You can use a plugin to regenerate all your images or upload them again.

Parker
Yeah I’m fully aware of that. However this function still doesnt work and uses settings from admin panel.

Now that I look better you’re using the wrong way to add image sizes.

You should use add_image_size in the right hook: http://codex.wordpress.org/Function_Reference/add_image_size

Then call the image size tag to get that size, eg: the_post_thumbnail(‘my_size_tag’);

Parker

185 posts
  • 6 Years of Membership
  • Exclusive Author
partnuz
says
ParkerAndKent said
partnuz said
ParkerAndKent said
partnuz said
Hi I use set_post_thumbnail_size(200,200) settings to change default thumbnail size from 150 to 200 pixels. However it seems that this function is overriden by settings from admin panel.

Did you regenerate the thumbs? When you change the sizes all the uploaded images will keep the old settings until regeneration. You can use a plugin to regenerate all your images or upload them again.

Parker
Yeah I’m fully aware of that. However this function still doesnt work and uses settings from admin panel.

Now that I look better you’re using the wrong way to add image sizes.

You should use add_image_size in the right hook: http://codex.wordpress.org/Function_Reference/add_image_size

Then call the image size tag to get that size, eg: the_post_thumbnail(‘my_size_tag’);

Parker

I dont think so. According to this part of codex this function “Set the default Post Thumbnail dimensions. To register additional image sizes for Post Thumbnails use: add_image_size(). ” so this should change default wordpress settings.

3439 posts
  • Author Level 4
  • Collector Level 2
  • Community Superstar
  • United States
+2 more
organicbee
says

question whats not working… is it displaying properly on your theme? or is it not generating them on your server?

119 posts Too Much is Never Enough
  • Elite Author
  • Featured Author
  • Weekly Top Seller
  • Author Level 8
+4 more
premitheme
says

And if it’s not displaying properly on your theme, what is the syntax you’re using to show them?

185 posts
  • 6 Years of Membership
  • Exclusive Author
partnuz
says
OrganicBeeMedia said
question whats not working… is it displaying properly on your theme? or is it not generating them on your server?

Its displaying wrong dimension instead of this specified using set_post_thumbnail_size(200,200)

However I think I found solution instead of using the_post_thumbnail(‘thumbnail’) I use the_post_thumbnail() and now everything works. Dont know if its a bug or deliberate feature.

2468 posts
  • 6 Years of Membership
  • Author Level 2
  • Affiliate Level 4
  • Beta Tester
+3 more
digitalimpact
says

If it had the correct width (200), but a different height than 200, then that’s WordPress’ auto cropping for you :)

by
by
by
by
by
by