hi Luo ,this code below was working fine , after the beta update its not working as before.
[wpv-conditional if="( $(wpcf-floor-plan-image) ne '' )"]
[wpv-for-each field="wpcf-floor-plan-image"]
<a href='[types field="floor-plan-image" raw="true" data-rel="lightbox-gallery-182"][/types]'>
[types field='floor-plan-image' alt='%%ALT%%' title='%%TITLE%%' width='200' height='200' align='left' resize='crop' separator=' '][/types]</a>
[/wpv-for-each]
[/wpv-conditional]
i notice the field raw and url value has been updated to :
[types field="floor-plan-image" output="raw" separator=", "][/types]
[types field="floor-plan-image" size="full" separator=", " url="true"][/types]
pls let me have the correct code if possible. thanks.
Dear C6410,
Please try below codes and test again:
[wpv-conditional if="( $(wpcf-floor-plan-image) ne '' )"]
[wpv-for-each field="wpcf-floor-plan-image"]
<a href='[types field="floor-plan-image" url="true" size="full" data-rel="lightbox-gallery-182"][/types]'>
[types field='floor-plan-image' alt='%%ALT%%' title='%%TITLE%%' width='200' height='200' align='left' resize='crop' separator=' '][/types]
</a>
[/wpv-for-each]
[/wpv-conditional]
More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image
url:
'false'(default) | 'true'
true=output the url of the image instead of the html img tag.
Works with the size attribute to output the url of the re-sized image
Hi . LUo this is the error message i receive:
Image cannot be loaded. Make sure the path is correct and image exist.
i also notice from the output the href is referring to 2 images not one.
i repeat the above code on #1 was working till i update to the beta toolset version.
thanks.
Above codes work in my localhost with a fresh wordpress installation + latest beta toolset version, in case there is any other compatibility problem, please check these in your website:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) if the problem persists, please provide a copy of your website, also point out the problem page URL and layout URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
You can put it into your own google drive disk, and share the link in the "private detail box", I need to duplicate same problem and debug it in my localhost, thanks
Hi can you look into my staging site the issue. if its possible to revert to non beta if thats what causing this issue ?
link : toolset layout id 75 . the login credential you have has been activated. thanks.
I did not save your website credentials, please provide the login details of your website in below private message box, and point out the problem page URL, and where I can edit above codes, thanks
Please point out the problem page URL and the login URL, thanks
Login url add /hrk_login
Page is layout id 75 . Section : floor plan. Thanks
I am asking for the problem URL:
https://toolset.com/forums/topic/code-not-valid-2/#post-605351
But you provide a layout id 75, so It takes time to find the URL in your old tickets,
I assume we are talking about this layout:
enlace oculto
cell "floor plan"?
I test it in the front-end:
enlace oculto
The codes does not work in your website, and you are using the latest stable version of Types + Views plugin, so it is abnormal, in case there is any compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks
I just downloaded your database dump file, and import it into my localhost, there are lots of table in it, I am not sure which one is the problem tables, please edit your wordpress file wp_config.php, find this line:
$table_prefix = '...';
Copy it here.
Thanks, I am trying to duplicate same problem and debug it in my localhost, will feedback if there is anything found.