Skip Navigation

[Resolved] Preventing Toolset from creating wpcf_ images

This thread is resolved. Here is a description of the problem and solution.

Problem:

I notice that Toolset creates an image ns-ankeveense-plassen-IMG_3389-wpcf_464x261.jpg which seems to create an unnecessary wpcf_ duplicate. Is there any way to prevent this?

Solution:

The attribute resize='proportional' is missing in your image shortcode, please try to modify your codes as below:

https://toolset.com/forums/topic/preventing-toolset-from-creating-wpcf_-images/#post-1236842

Relevant Documentation:

This support ticket is created 5 years, 8 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)

This topic contains 2 replies, has 2 voices.

Last updated by Jens 5 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1236826

Hello,

I have an image gallery using the following code;

<div>
[wpv-for-each field="wpcf-image-gallery"]<a href="[types field='image-gallery' output='raw' resize='proportional' separator=', '][/types]">[types field='image-gallery' title='%%TITLE%%' alt='%%ALT%%' size='medium' class='col-sm-4 dewandelaar-2rem-bottom img-responsive' separator=', '][/types]</a>[/wpv-for-each]
</div>

An example is at the link hidden link.

I've specified to use the 'medium' size image which is, for example, ns-ankeveense-plassen-IMG_3389-464x261.jpg

I notice that Toolset creates an image ns-ankeveense-plassen-IMG_3389-wpcf_464x261.jpg which seems to create an unnecessary wpcf_ duplicate. Is there any way to prevent this?

Thanks in advance.

#1236842

Hello,

The attribute resize='proportional' is missing in your image shortcode, please try to modify your codes as below:

<div>
[wpv-for-each field="wpcf-image-gallery"]<a href="[types field='image-gallery' output='raw' resize='proportional' separator=', '][/types]">[types field='image-gallery' title='%%TITLE%%' alt='%%ALT%%' size='medium' class='col-sm-4 dewandelaar-2rem-bottom img-responsive' separator=', ' resize='proportional'][/types]</a>[/wpv-for-each]
</div>

Add test again.

#1237011

My issue is resolved now. Thank you!