Skip Navigation

[Closed] Display a resized image of a child post field

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 9 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Caridad 9 years, 7 months ago.

Assisted by: Caridad.

Author
Posts
#240185

I would like to know how can I display a resized image from a child post field?

Normally, if it's just an image custom field for a custom post type, I would use this code:

types_render_field('portfolio-image', array('output'=>'raw', 'width'=>'499', 'height'=>'350'));

I checked the user guide and this displays the image of a child post:

echo $child_post->fields['portfolio-image']

But how do I configure the image size etc. for a custom field on a child post?

Thanks.

#240267

Dear Keane,

Can you post the fool loop? The types_render_field uses the global $post variable to determine the current post, and maybe we can change the loop to use the global $post variable.

Thanks
Caridad

The topic ‘[Closed] Display a resized image of a child post field’ is closed to new replies.