Custom permalink rewrite rules – how do I fix this?

Custom rewrite tags have to be added before they can be used in permalinks, otherwise WP will not be able to parse those rules.

function your_init_function(){
    add_rewrite_tag( '%category_type%', '([^&]+)' );
    // register your post type....
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)