ACF Gallery and searching by text: Illegal string offset (Woocommerce, WOOF)
-
Hi,
I have problem with using ACF Gallery with Woocomerce Product Filtering. When I am searching product by its attribute everything is ok, ACF Gallery of colors under text is displayed:
Problem occurs when I try to search by text (Woocommerce Product Filtering), I wrote the name of the product:
Problem with displaying ACF Gallery
Colors under text are not displaying, I am getting:
Illegal string offset ‘url’ in woocommerce/content-product.phpMy code there is:
$images = get_field('colors'); if( $images ) { ?> <?php for ($i = 0;$i < count($images) && $i < 38;$i++) { ?> <img src="<?php echo $images[$i]['sizes']['thumbnail']; ?>" alt="<?php echo $images[$i]['alt']?>" /> <?php } ?> <?php } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘ACF Gallery and searching by text: Illegal string offset (Woocommerce, WOOF)’ is closed to new replies.