/** * Add fields to your admin page 4th tab * * WordPress Options: * Taxonomies dropdown * posts dropdown * Taxonomies checkboxes list * posts checkboxes list * */ //title $options_panel->Title(__("WordPress Options", "apc")); //taxonomy select field $options_panel->addTaxonomy('taxonomy_field_id', array('taxonomy' => 'category'), array('name' => __('My Taxonomy Select', 'apc'), 'class' => 'no-fancy', 'desc' => __('This field has a <pre>.no-fancy</pre> class which disables the fancy select2 functions', 'apc'))); //posts select field $options_panel->addPosts('posts_field_id', array('args' => array('post_type' => 'post')), array('name' => __('My Posts Select', 'apc'), 'desc' => __('posts select field description', 'apc'))); //Roles select field $options_panel->addRoles('roles_field_id', array(), array('name' => __('My Roles Select', 'apc'), 'desc' => __('roles select field description', 'apc'))); //taxonomy checkbox field $options_panel->addTaxonomy('taxonomy2_field_id', array('taxonomy' => 'category', 'type' => 'checkbox_list'), array('name' => __('My Taxonomy Checkboxes', 'apc'), 'desc' => __('taxonomy checkboxes field description', 'apc'))); //posts checkbox field $options_panel->addPosts('posts2_field_id', array('post_type' => 'post', 'type' => 'checkbox_list'), array('name' => __('My Posts Checkboxes', 'apc'), 'class' => 'no-toggle', 'desc' => __('This field has a <pre>.no-toggle</pre> class which disables the fancy Iphone like toggle', 'apc'))); //Roles checkbox field $options_panel->addRoles('roles2_field_id', array('type' => 'checkbox_list'), array('name' => __('My Roles Checkboxes', 'apc'), 'desc' => __('roles checboxes field description', 'apc'))); /** * Close 4th tab */ $options_panel->CloseTab(); /** * Open admin page 5th tab */