PHP error when define "size" in image or gallery field
-
Hi Eliot,
I just want to let you now that I get the following PHP error (with WP_DEBUG and/or Query Monitor activated) when I define the “size” in an image of a gallery field.
Notice: Undefined index: size in \wp-content\plugins\custom-content-shortcode\includes\core\content.php on line 1198
With the result is nothing wrong, the correct size of the image shows up (I tested it with different image-sizes).
The shortcode I use is like:
[loop type="fotoalbum"] <div class="fotoalbum-item"><a title="[field title]" href="[field url]">[if field="image"][field image size="thumbnail" image_class="aligncenter"][else][content field="gallery" num="1" size="thumbnail" image_class="aligncenter"][/if]</a></div> [/loop]I get 4 errors when using the shortcode above. I hope it can help you to improve the code.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP error when define "size" in image or gallery field’ is closed to new replies.