How do I rewrite URL that has custom parameter
You can use a rewrite endpoint for this. The first step is to give your custom taxonomy an endpoint mask when you register the taxonomy: $args = [ ‘rewrite’ => [ ‘slug’ => ‘topic’, ‘ep_mask’ => EP_CATEGORIES ], // the rest of your args… ]; register_taxonomy( ‘topic’, array( ‘post’ ), $args ); The next step … Read more