I am developing a WordPress theme locally and I can't figure out how to get an image to display in a normal size in the_content(). At the moment, the images are displaying the same size as my featured image. I tried using the set_post_thumbnail_size() to resize the image but still no change.

Has anyone come across the same problem before ?

Any guidance would be great.

  • How are you adding the photos in? If you're talking about the the_post_thumbnail() function, you will want to specify a size for that function, which is discussed in The Codex. Otherwise, you may be looking at a CSS issue. Without knowing more, it's hard to say where your problem lies... – brianjohnhanna Aug 18 '15 at 19:22
  • Thanks for the suggest, I think I managed to figure out the problem. My image width and height was set to 100% in my CSS style sheet, which was causing the image to take up the full width of the container. – Clinton1000 Aug 19 '15 at 20:16

Instead of using set_post_thumbnail_size() try add_image_size()

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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