Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have noticed that on the admin screen for viewing custom taxonomies that WordPress does not seem to save the 'show on screen' screen option. Upon changing it and clicking apply, the screen reloads and the value is back to 20.

This does not occur with the WordPress built-in categories and tags. Only custom taxonomies. The other screen options (which columns to show/hide) behave as expected.

Have I unearthed a bug, or I am expected to implement this option (or have I neglected an option when registering the taxonomy) ?

EDIT

I have made the a test plug-in, here is the code. I have tested this on WP3.3, TwentyEleven theme.

<?php
/*
Plugin Name: Test Plugin
Version: 1
*/

add_action( 'init', 'create_Test_taxonomies', 0 );
function create_Test_taxonomies() {
  $category_labels = array(
    'name' => _x( 'Test Categories', 'taxonomy general name' ),
    'singular_name' => _x( 'Category', 'taxonomy singular name' ),
    'search_items' =>  __( 'Search Categories' ),
    'all_items' => __( 'All Categories' ),
    'parent_item' => __( 'Parent Category' ),
    'parent_item_colon' => __( 'Parent Category:' ),
    'edit_item' => __( 'Edit Category' ), 
    'update_item' => __( 'Update Category' ),
    'add_new_item' => __( 'Add New Category' ),
    'new_item_name' => __( 'New Category Name' ),
    'not_found' =>  __('No categories found'),
    'menu_name' => __( 'Test Categories' ),
  );    

register_taxonomy('test-cat',array('post'), array(
    'hierarchical' => true,
    'labels' => $category_labels,
    'show_ui' => true,
    'query_var' => true,
    'public'=> true,
  ));
}
share|improve this question
    
Hmm, working OK for me with custom taxes. Post your register_taxonomy call & a quick run-down of your environment (WP version, theme, plugins). –  TheDeadMedic Jan 14 '12 at 14:18
    
@TheDeadMedic, I've posted the code and WP version etc. –  Stephen Harris Jan 14 '12 at 15:16
add comment

1 Answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.