Permalink problems with custom post type and custom taxonomy
There was a problem with archive page and pagination in the original answer. Therefore, instead of changing the “rewrite” => [‘slug’ => ‘our-training/%training-category%’] in register_post_type() as I suggested earlier, add the following rewrite rules and change the links created for CPT. The rules will handle such addresses: display single training post with pagination support /our-training/training-category-1/training-name/ … Read more