Support » Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies » Get other sizes of custom image-fields

  • Resolved Jules Colle


    Hello, I really like your plugin, it has helped me a lot. But I have one small problem.

    Say I have a repeating image field. I can loop trough the images like so:

    foreach ($meta['wpcf-myimages'] as $url) {
        echo "<img src=\"$url\">";

    I’m also aware that, if I had only one image field I could do something like this to get the medium sized image:

    echo(types_render_field( "myimage", array( "size" => "medium" ) ));

    But I’m not sure how I can get the medium image size for my repeating images.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Jules,

    You can use echo(types_render_field( “myimage”, array( “size” => “medium” ) )); for showing repeating images in Medium size. Please try and let me know your feedback.

    [ Signature moderated. ]

    thank you Bigul, I actually just figured that out. I didn’t think it would work, because the function name is a bit misleading being singular and all. But after giving it a try i found it automatically repeats for all fields, and you can even separate the results with a custom delimiter. I’m liking this plugin more and more every time I use it. Resolved!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get other sizes of custom image-fields’ is closed to new replies.