Home › Forums › Add-ons › Gallery Field › Gallery images width and height attributes › Reply To: Gallery images width and height attributes
Hi @Vasili
The width and height attributes exist in the $image
variable.
Just dump out the value of $image
to see what is available!
<?php
echo '<pre>';
print_r($image);
echo '</pre>';
die;
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.