Hi,
I read your forum and tried to apply the solutions to change the slug from reviews to casinos and also list to comparisson, here you can see the code Im using. It does not work. I try to create new reviews but they still show a slug type /review/casinoname instead of casinos/casinoname (casinos should be my newslug).
Also for the categories, they still appear as /list/
//Change CPT slug
/*
add_filter( ‘register_post_type_args’, ‘change_slug_affiliates_cpt’, 10, 2 );
function change_slug_affiliates_cpt( $args, $post_type ) {
if ( $post_type == ‘affiliates’) {
$args[‘rewrite’][‘slug’] = ‘casinos’;
$args[‘has_archive’] = false;
}
return $args;
}
}*/
/*add_filter( ‘register_taxonomy_args’, ‘change_slug_affiliates_tax’, 10, 2 );
function change_slug_affiliates_tax( $args, $taxonomy ) {
if ( $taxonomy == ‘lists’) {
$args[‘rewrite’][‘slug’] = ‘comparisson’;
}
return $args;
}*/