Home › Forums › Bug Reports › get_field image returns ID only on search results page (PRO) › Reply To: get_field image returns ID only on search results page (PRO)
@jjot93 and others, one of the reasons I rarely see this issue is that I almost never return anything from an image field but the ID anyway. The reason is that when there are many images on a page, and when you have several custom image sized set up in WP, returning an array of all of the images causes a lot of unnecessary work to be done getting all of the data for all of those different image sizes and this can slow things down. I find it better to get the image ID and then just do the work myself.
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!