B
B
Boris Belov2018-04-18 18:30:33
WordPress
Boris Belov, 2018-04-18 18:30:33

How to set the same slug for different terms?

Hello.
You need to do this
Brands (/brands)
- Adidas (/krossovki-adidas)
- - Basketball ( /basketball)
- - Football (/football)
- Nike (/krossovki-nike)
- - Basketball ( /basketball)
- - Football (/ football) - Saucony ( / krossovki
-saucony)
- - Basketball (/basketball)
- - Football (/football) Adidas is also /brands/krossovki-adidas/basketball But we can’t just create /basketball/ there and there, because according to the WP standard, we will not be allowed to do this. How can this be resolved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2018-04-18
@HeadOnFire

1. Make sports a separate taxonomy.
2. Give it a custom rewrite_rule like /brands/krossovki-%brand%/%sport%/.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question