Home Forums General Issues Include ACF pro in theme Reply To: Include ACF pro in theme

  • You add filters and actions.

    I’m pretty sure this is all in the documentation somewhere so this is just a quick overview.


    // add options pages
    add_action('init', 'add_theme_options_pages');
    function add_theme_options_pages() {
        if (!function_exists('acf_add_options_sub_page')) {
        // add code here to add options pages
    // add custom fields
    // export the field groups and use below
    add_action('acf/include_fields', 'add_theme_field_groups');
    function add_theme_field_groups() {
        // you can get the code you need here by exporting
        // your field group to PHP
        // you could also use JSON, search for ACF Local JSON

    Hope this helps.