I've made mistake creating custom post type. I've put:
register_post_type( 'Post Name', $args );
register_post_type( 'post_name', $args );
Now I need to assign new custom taxonomy to this post type. Problem stars here:
register_taxonomy( 'custom taxonomy', array( 'Post Name' ), $args );
I've tried to change custom post type name to one string and then assign taxonomy and it works.
register_taxonomy( 'custom taxonomy', array( 'post_name' ), $args );
Problem is that because of existing content I can't change custom post type name like this. Looking for workaround that let me save my existing content.