true, '_builtin' => false ); $output = 'objects'; // or objects $operator = 'and'; // 'and' or 'or' $taxonomies = get_taxonomies( $args, $output, $operator ); $taxonomy_posts = get_object_taxonomies( 'post', 'objects' ); $taxonomies = array_merge($taxonomies, $taxonomy_posts); if($taxonomies['post_format'] || !empty($taxonomies['post_format'])){unset($taxonomies['post_format']);} if($taxonomies['post_tag'] || !empty($taxonomies['post_tag'])){unset($taxonomies['post_tag']);} $msg = ''; sort($taxonomies); if ( count($_POST) > 0 && isset($_POST['template_settings'])){ if(!empty($_POST['post_category_name'])){ $impVal=implode(',', $_POST['post_category_name']); delete_option ( 'advance_category_template'); add_option ( 'advance_category_template', $impVal ); $msg = '
Setting Saved.
Please select atleast one taxonomy.
Default Setting Saved.
Plugin Disabled Successfully.
Plugin Enabled Successfully.