Image field not returning URL in archive loop following update to 5.7.8
-
Both get_field() and the_field() are failing to return the File URL when used within an archive loop following the most recent update. They’re just returning the ID instead.
This is limited to posts within an archive loop – standalone pages where the field is requested still return the File URL as expected (and as specified in the field settings)
e.g:
Archive for category:
https://www.lovemydress.net/littlebook/categories/entertainment/
– broken images within the white boxes above supplier nameSingle listing:
https://www.lovemydress.net/littlebook/directory/wedding-smashers/
– logo displays successfully above supplier nameBoth use same code snippet to display.
I’ve tried also specifying the post ID within the loop, and also tried the alternative display method of grabbing the array and selecting the URL element. Both just display the ID still.
Any ideas?
- The topic ‘Image field not returning URL in archive loop following update to 5.7.8’ is closed to new replies.