I have moved this question to a new topic, because it was not related to the previous thread.
In your question, you mentioned that you are using the above code in your functions.php file.
If so, you will need to specify a post_id as a second parameter to tell AF from with post to load the data from.
Please read over the docs regarding get_field to learn more about the post_id parameter.
Hope that helps.