Get value option page ACF
<p>I've created an ACF option page, all went good. I created some custom fields, once again all went good. I also saved data in the fields, all went good.</p>

<p>I looked in the database and it was saved under <code>wp_options</code>, so all went good.</p>

<p>Now I wan't to get the values in an php script on the backend.</p>

<p>Let's say my field name is <code>field_name</code>.</p>

<p>I used <code>get_field('field_name', 'option');</code>, it didn't give me anything.</p>

<p>I also tried <code>get_fields();</code> - this gave me an array with the option fields like this:</p>

<pre><code>array(3) { 
  ["field_name"]=&gt; array(0) { } 
  ["field_name1"]=&gt; bool(false) 
  ["field_name2"]=&gt; string(0) "" 
} 
</code></pre>

<p>So, somehow the values are empty.</p>

<p>I checked the database again, but they're there.</p>

<pre><code>$field = get_field_object('field_879e859f07841');
var_dump(get_post_meta ( $field['key'], 'field_name'));
</code></pre>

<p>This gave the same empty array..</p>

<p>I can't figure this out.</p>

<p>Can someone help with figuring what's happening?</p>