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)
Sorry to revive this topic but having same issue using
get_field('training_header_image','option');
and no matter what return value setting i have, it is always returning the ID, made a vardump and got this:
string(3) "724"
this happens only in the search results page for wordpress, and it is the only field its not working, cause i have other fields for some custom titles and they are displaying fine.
Used the same code on another section of the same page and it works, the issue is in the search.php file of wordpress where its presenting the bug.
im running lastest version 5.5.7 with the “get_field()” fix, this is the first time i have problems with ACF
please help.
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.