Support

Account

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.