Skip to content
Advertisement

php $image = get_field( ‘image’ ) // if // else

I need an inquiry if there is no image that an alternative image is used.

JavaScript

the crazy thing is that it works on four out of 18 images. I think I have an error in the “else query” somewhere. Because if I swap the defalut image with the actual product image, then it works .. but of course that is not meaningful;)

Advertisement

Answer

i think it works!!!

I wrote the whole code again “cleanly”!

Thanks for all the support!

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement