Hi,
I can't seem to find an solution to this anywhere.
Basically I have an image repeater field called "photo" and I need to display thumbnails of each photo on a page. I don't want to use shortcodes in the WYSWYG editor so I need to code it into my template.
My template just needs to output each image in a list in this format:
<li><a href="path-to-full-size-image" rel="prettyPhoto"><img src="path-to-thumbnail" /></a></li>
The path-to-full-size-image would obliviously be the original image that was uploaded, and the path-to-thumbnail would be the small image that also gets created by wordpress when an image is uploaded.
__________________________________________________________________________________________
Additional Information
FYI I've used...
add_image_size( 'Small', 150, 150, $crop = true );
...in my functions file for the thumbnail. So the path-to-thumbnail will need to use the 'Small' image, which can be easily echoed out with:
echo types_render_field("photo", array("raw"=>"false", "size"=>"Small"));
Thanks in advance.
Luo Yang
Supporter
Languages:
English (English )
Chinese (Simplified) (简体中文 )
Timezone:
Asia/Hong_Kong (GMT+08:00)