title: Adding fields to an options page
body: <p>I'm trying to add fields to an options page through PHP, and I can't get it to work, I've tried nearly everything by now, but it just won't work.</p>
  
  <p>I hope you can help, my php looks like this:</p>
  
  <pre><code>if (function_exists('acf_add_options_page')) {
      $option_page = acf_add_options_page(array(
          'page_title' =&gt; 'Indstillinger',
          'menu_title' =&gt; 'Indstillinger',
          'menu_slug' =&gt; 'options',
          'capability' =&gt; 'edit_posts',
          'redirect' =&gt; false
      ));
  }
  
  function my_acf_add_local_field_groups() {
  
      acf_add_local_field_group(array(
          'key' =&gt; 'group_1',
          'title' =&gt; 'My Group',
          'fields' =&gt; array(
              array(
                  'key' =&gt; 'field_1',
                  'label' =&gt; 'Sub Title',
                  'name' =&gt; 'sub_title',
                  'type' =&gt; 'text',
              )
          ),
          'location' =&gt; array(
              array(
                  array(
                      'param' =&gt; 'post_type',
                      'operator' =&gt; '==',
                      'value' =&gt; 'options',
                  ),
              ),
          ),
      ));
  }
  
  add_action('acf/init', 'my_acf_add_local_field_groups');
  </code></pre>
  
  <p>What am I doing wrong here?</p>