Ever since the latest updates, the repeatable field for images shortcode are not resizing the images. This is happening with all the sites I've updated.
Example:
[types field='logo' alt='%%ALT%%' title='%%TITLE%%' height='104' align='center' resize='proportional' separator='<li class="fifth">'][/types]
or
[types field='logo' title='%%TITLE%%' alt='%%ALT%%' align='center' size='thumbnail' resize='proportional' separator='<li class="fifth">'][/types]
are output the full size original image only.
If I output the shortcode for URL of a resized version of the image then it works, but only on a default size (ie, thumbnail, medium, not custom size).
[types field='logo' title='%%TITLE%%' alt='%%ALT%%' size='medium' resize='proportional' class='center' url='true' separator=', '][/types]
Is this a bug?
Hi, I'm not aware of a bug related to this. Can you log into wp-admin, then go to Toolset > Settings > Custom Content and tell me the settings in the Images section? Clear the image caches and toggle the checkboxes on and check the fields again on the front-end.
Are you using a wpv-for-each loop? Can you share the complete code if so?
Hi.
Tried clearing the cache in the settings and the browser cache and played around with the checkboxes. No difference.
My original loop was this:
<ul class="sponsorlogos">
<li class="fifth">
[types field='logo' alt='%%ALT%%' title='%%TITLE%%' height='104' align='center' resize='proportional' separator='</li><li class="fifth">'][/types]
</li>
</ul>
Tried the wpv-for-each-loop. Custom size does not work, but a default size does:
<ul class="sponsorlogos">
[wpv-for-each field="wpcf-logo"]
<li class="fifth"><img class="aligncenter" src="[types field='logo' size='medium' url='true'][/types]"></li>
[/wpv-for-each]
</ul>
So I could add a custom size in the functions for a default size.
The above code was working before the update, and as mentioned used on a few websites.
Okay thanks, I'm not able to replicate this problem locally so I suspect something else is going on. May I log into your site's wp-admin panel and see how things are set up? If necessary I will make a clone of your site using the Duplicator plugin so I can run additional tests without affecting your live site. I have activated private reply fields here so you can share login information.
Please let me know where I can see the repeating images on the front-end of the site.
Very strange. I downloaded a clone of the site and I'm having the same results you found - the resized images are working but they're stored in a 1970 directory. I will escalate this problem to my 2nd tier support team for some additional investigation, and get back to you when I have more information to share.
My 2nd tier support team is looking into the 1970 directory issue that we are both able to replicate on our local clones. It may be related to the resized images showing at original size, and it may not. For the main issue you were reporting - images not being resized correctly - since neither of us is able to replicate this on our clones of the site I'm not able to offer any concrete solutions yet. Here are some things you can try:
- Temporarily activate a default theme like Twenty Seventeen, and deactivate any plugins except Types, Views, and Layouts. If any object caching systems are in use on your host environment, disable and / or flush them.
- Edit and resave each Sponsor post
- Build a new View using a new Content Template, and replace the current Home Page Sponsor Carousel View with the new View.
- Delete and reinstall all Toolset plugins
- Go to Toolset > Settings > Layouts and increase the max number of pages to refresh something higher like 10000, temporarily
Hi, our developers have provided some feedback. We are currently using the 1970 folder to store resized remote images. Apparently this helps facilitate clearing the cache of remote resized images without affecting the images from the Media Library. So the 1970 folder is expected in this case. The next release of Types will include a fix for the problem where resized images are not appearing correctly after the Types 3.0 update. I will keep you posted here and let you know when that update is available to download or for automatic update.
Hi, please find Types 3.0.7 available for download or automatic update. Install the latest version and let me know if resized images are still not displaying correctly.