Image DESCRIPTION and TITLE Failures
-
The shortcode I have used in a page works but I’m starting to think there are too many limitations in this product to be useful (apart from not working correctly in WP 6.1.1).
In the TITLE Field (under advanced) of an image it sort of works but all PHP comments and SCU div are displayed in the image’s tooltip. Comments coming out surely must be a bug? – But I don’t know PHPIs there an override for the the “div” being generated? The fact that my output is CURRENTLY in HTML is not an issue as I can fix that, the rest I can’t as far as I know.
I tried it in alt text also, this is the generated code:
<img data-attachment-id="4872" data-permalink="https://www.wcipp.org.au/test-image-not-seen-on-xxxxx-web-page-used-for-testing-image-related-stuff/" data-orig-file="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=1920%2C1080&ssl=1" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="test-image [Not seen on xxxxx Web Page, used for testing Image related stuff]" data-image-description="<p>Test Image Description<br /> <span>[scu name="'dbtest2'"] is not installed or enabled</span></p> " data-image-caption="<p>Test Image Caption<br /> <span>[scu name="'dbtest2'"] is not installed or enabled</span></p> " data-medium-file="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=300%2C169&ssl=1" data-large-file="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=1024%2C576&ssl=1" decoding="async" loading="lazy" width="206" height="206" data-id="4872" src="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?resize=150%2C150&ssl=1" alt="Test Image Alt Text <div class="scu-shortcode sc-dbtest2" data-name="dbtest2" data-p1="yyy" data-p2="p2value"><!-- Available PHP variables: --> <!-- $content: content of the shortcode (if configured so) --> <!-- $atts: array of attributes of the shortcode (if any) --> <!-- $resources_url: url of the shortcode resources dir --> <hr>CONTENT: dbtest2 content<hr>P1: "yyy"<br>P2: "p2value"<br>P3: ""<br><hr></div>" class="wp-image-4872" title="<div class="scu-shortcode sc-dbtest2" data-name="dbtest2" data-p1="yyy" data-p2="p2value"><!-- Available PHP variables: --> <!-- $content: content of the shortcode (if configured so) --> <!-- $atts: array of attributes of the shortcode (if any) --> <!-- $resources_url: url of the shortcode resources dir --> <hr>CONTENT: dbtest2 content<hr>P1: "yyy"<br>P2: "p2value"<br>P3: ""<br><hr></div>" srcset="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?resize=150%2C150&ssl=1 150w, https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?resize=600%2C600&ssl=1 600w, https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?zoom=2&resize=150%2C150&ssl=1 300w, https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?zoom=3&resize=150%2C150&ssl=1 450w" sizes="(max-width: 150px) 100vw, 150px" data-gallery-src="https://i0.wp.com/www.wcipp.org.au/wp-content/uploads/2022/12/test-image-Not-seen-on-xxxx-Web-Page-used-for-testing-Image-related-stuff.jpg?fit=2936%2C1450">
In the description field it just says that the shortcut is not installed or enabled:
[scu name="’dbtest2"”] is not installed or enabled
Notice the extra double quotes, I was having this particular issue with another product so that may be something environmental….
- The topic ‘Image DESCRIPTION and TITLE Failures’ is closed to new replies.