1

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.

2
  • 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... Commented Aug 18, 2015 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. Commented Aug 19, 2015 at 20:16

1 Answer 1

0

Instead of using set_post_thumbnail_size() try add_image_size()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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