Checking if an attribute exists in a shortcode
Okay, I’ve re-written the function so that it does the following: checks that your array values are set before using them. You can’t always be sure they’ll be there. if the image is empty, it returns with an error message. Not sure if this is what you want, but you can just remove it. first … Read more