Skip Navigation

[Resolved] Resize upload image via CRED

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#831377

Dear Sir/Madam,

When an image is uploaded to WP, WP will automatically resize the image with different size according to the thumbnail, medium and large setting from Media Setting. May I know whether it is the same for image upload via the CRED? If yes, how can I get the thumbnail image from the Views? If no, how can I enable the resize procedure when uploading the image?

Best regards,

Kelvin.

#838071

Dear Kelvin,

Yes, you are right, if it is a custom image field created with Types plugin, and you are using CRED form to upload those images, it is the same:
WP will automatically resize the image with different size ...

You can get images in different size with Types shortcode:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image

For example:
[types field="my-image" size="thumbnail" url="true"]

If it is post feature image, please try Views shortcode [wpv-post-featured-image]:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image

For example:
[wpv-post-featured-image size="thumbnail" raw="false"]