最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

url rewriting - How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?

matteradmin6PV0评论

I have a website structure in which I have created a custom-taxonomy(topic). Whenever a custom-taxonomy-term is created say "1", its three verbs a,b,c are created and they have their templates of there own.

So to look it in URL form.

custom-taxonomy-term: example/topic/1

custom-taxonomy-term-verb: example/topic/1/a , example/topic/1/b & example/topic/1/c.

And if someone goes to example/topic/1 they should be automatically redirected to example/topic/1/a.

I have a diagram attached below for better understanding.

How can I get this behaviour in WordPress?

PS: I am not putting all the three in custom-taxonomy templates because of SEO reasons. I want to have an a, b & c for every custom-taxonomy term.

Post a comment

comment list (0)

  1. No comments so far