Home › Forums › General Issues › get title from Image ID › Reply To: get title from Image ID
If you want to create images that have the same aspect ratio then what you do is you set one dimension to a value and the other to 0 when creating adding an image size
add_image_size('height1000', 0, 1000, false);
add_image_size('height800', 0, 800, false);
add_image_size('height600', 0, 600, false);
The same can be done for width
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.