categories – How to add custom prefix before category-base-slug in category pages url?

Question

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?

0
agent abstract 2 weeks 2023-01-17T16:53:15-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse