Home › Forums › General Issues › Can't display specific size image › Reply To: Can't display specific size image
Hi @johnnyriss
2 things:
1 Looking at the docs (http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src) I can see that there is a 2nd param to the function called $size. You are not using this size. You should me using ‘medium’
2. Further on the docs, it states that the returned value is not a URL to the image, but an array containing 3 bits of info. The first being the URL followed by the width and height.
This is already covered in the documentation for the image field. Perhaps you could read up on the ACF docs?
Hope that helps
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.