Hi, I am trying to render an image which is a custom field "listing_image" defined in Types:
<?php echo(types_render_field("listing_image", array("alt"=>"Property Image", "size"=>"medium"))); ?>
In this case the images are uploaded via WP and I have verified that multiple versions of the image have been created. The medium size should be limited to 300x300 pixels, so for example I have
and
in the uploads folder. I am able to see the image rendered in a size of 300x200. However, when I looked carefully at the HTML code, it is actually rendering the full size image scaled to the medium size area, i.e.
was served rather than
as expected.
Is this the current behaviour, or am I doing something wrong?
It turned out that when I modified the site URL, the images' URL remain unchanged. After I updated one with the correct URL the correct size is served.