Can you confirm that you have replaced ‘field_name’ with your field’s name?
Can you paste you actual code, not the documentation?
Can you please also debug your code line by line and confirm all the data is returned and correct?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users