Support » Plugin: Toolset Types » Can't display image in a template

  • Hello,

    I’ve created an image field with the plugin and now I’m confused how to display that image in a template I’ve tried the following without much success:

    $img = types_render_field("wpcf-people_photo", array("alt"=> "Profile image",
                        "size" => "image-custom-size-name"));
    echo $img;

    This doesn’t do anything. I would really appreciate if you could give an example of how to display an image of a registered image size.

    Many thanks,
    Dasha

    http://wordpress.org/extend/plugins/types/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can't display image in a template’ is closed to new replies.