ABooooo
3/18/2019 - 8:34 AM

theme option acf

// include in functions php in main function

if ( function_exists('acf_add_options_page') ) {
            $parent = acf_add_options_page( array(
                'page_title' 			=> 		'Allgemein',
                'menu_title' 			=> 		'Theme Optionen',
                'menu_slug' 			=> 		'theme_optionen',
                'capability' 			=> 		'edit_posts',
                'position' 				=> 		'1.1',
                'icon_url' => 'dashicons-admin-generic',
                'redirect' 				=> 		true,
                'update_button'		=> __('Änderungen speichern', 'eyeglass'),
                'updated_message'	=> __("Die Einstellungen wurden gespeichert.", 'eyeglass'),
            ) );

            acf_add_options_sub_page( array(
                'page_title' 	=> 'Header Einstellungen',
                'menu_title' 	=> 'Header Einstellungen',
                'menu_slug'		=> 'header_einstellungen',
                'parent_slug' => $parent['menu_slug'],
            ) );
        }
        
        
// include in template
<?php the_field( 'job_tags', 'options' ); ?>