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

I can do it manually like this:

echo get_the_post_thumbnail($post->ID, 'large');

But how can i set the size of the image rendered by the_content(); to Large too ?

share|improve this question
Do you mean how to set a size for the images inline with the content that comes from WordPress' text editor? If you want to force a size, you can do it via css and just target the parent wrapper that holds the_content in your css selector. If you don't want to force one size and just set a minimum or maximum, you can set a min-width/height or max-width/height in your css. Just remember that whenever you re-size images with css, you force the browser to size them therefore making your site run slower. Let me know if this is what you meant. Good luck! – RachieVee Jan 21 '14 at 17:20
Also this may help: codex.wordpress.org/Function_Reference/… – RachieVee Jan 21 '14 at 17:29

You can use the $content_width to set the maximum width for images added to posts. You can also use this for the height.


If you use CSS, smaller post images may be stretched.

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.