categories – How to add custom prefix before category-base-slug in category pages url?
Is it possible to add a custom prefix right before the category-base-slug of the category pages url?
In this Category Page URL sample.com/category/top-10 the category-base-slug of it is category and the term is top-10
then add custom prefix so the output will be like this: sample.com/my-custom-prefix/category/top-10
I’ve read the add_rewrite_rule() but I don’t really get how to apply it to this approach, is there any documentation that you could point me out or any existing similar question here?