How do I output the value of the ACF for the page (not post) in wordpress?

Is the ACF field group to the page:
How do I output the value of that field in the topic?
var_dump(get_field('banner', url_to_postid($_SERVER['REQUEST_URI'])));
var_dump(get_field('banner', 'page_'.url_to_postid($_SERVER['REQUEST_URI'])));

All outputs null. For some reason, the instructions, like this, said of any options, except the pages.
March 23rd 20 at 19:32
0 answer

Find more questions by tags WordPress