Are you calling the acf function inside “The Loop” (somewhere inside the while(have_posts())
loop.
If not then you’ll need to supply the post ID to get the fields from, it’s an optional second parameter for many ACF functions https://www.advancedcustomfields.com/resources/the_field/