Here is 2 options for you either you can use function file hook or you can make using plugin.
Option 1: You can add below code into functions.php
Option 2: Add respective plugin https://wordpress.org/plugins/remove-taxonomy-url/
2.1. And check below screenshot to select remove base slug of taxonomy

// Remove the base slug from term links
function custom_remove_taxonomy_base($termlink, $term, $taxonomy) {
if ($taxonomy == 'breed-specific' || $taxonomy == 'inventory-make') {
$termlink = str_replace('/breed-specific/', '/', $termlink);
}
return $termlink;
}
add_filter('term_link', 'custom_remove_taxonomy_base', 10, 3);
// Remove the base slug from term permalinks
function custom_remove_taxonomy_base_rewrite_rules($rules) {
$new_rules = array();
$taxonomy = 'breed-specific';
foreach ($rules as $key => $rule) {
$new_rules[str_replace("$taxonomy/", "", $key)] = $rule;
}
return $new_rules;
}
add_filter('rewrite_rules_array', 'custom_remove_taxonomy_base_rewrite_rules');
// Refresh the permalinks to apply the changes
function custom_flush_rewrite_rules() {
flush_rewrite_rules();
}
add_action('init', 'custom_flush_rewrite_rules');
I came across your site wanting to learn more and you did not disappoint. Keep up the terrific work, and just so you know, I have bookmarked your page to stay in the loop of your future posts. Here is mine at QH8 about Thai-Massage. Have a wonderful day!
Your article helped me a lot, is there any more related content? Thanks!
Your article helped me a lot, is there any more related content? Thanks!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.com/pl/register?ref=YY80CKRN