• Resolved M4GN3T

    (@m4gn3t)


    Since the update to WordPress 3.1 my taxonomies are completely broken, i can’t add taxonomies anymore and adding them to posts they don’t get autofilled.

    And if i open this link in my WP-Admin : https://www.psx-sense.nl/wp-admin/edit-tags.php?taxonomy=Game

    It says ‘Are you trying to cheat?’ whatever that means..

    I use the following code in my functions.php for decades:

    add_action( ‘init’, ‘create_pc_db_taxonomies’, 0 );

    function create_pc_db_taxonomies() {
    register_taxonomy( ‘Game’, ‘post’, array( ‘hierarchical’ => false, ‘label’ => __(‘Games’, ‘series’), ‘query_var’ => ‘game’, ‘rewrite’ => array( ‘slug’ => ‘games’ ) ) );
    }

    And now it doesn’t seem to work anymore, anyone has an solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can’t use uppercase letters in the name.

    Change it to:

    function create_pc_db_taxonomies() {
    register_taxonomy( 'game', 'post', array( 'hierarchical' => false, 'label' => __('Games', 'series'), 'query_var' => 'game', 'rewrite' => array( 'slug' => 'games' ) ) );
    }
    Thread Starter M4GN3T

    (@m4gn3t)

    Thanks that fixed it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress 3.1 broke my taxonomies’ is closed to new replies.