我有一个名为race的分层帖子类型。 例如,“纽约马拉松”有各种各样的孩子: “NYC marathon 2014”,“NYC marathon 2013”等......
目前每个孩子的网址都是这样的 http://example.com/races/nyc-marathon/nyc-marathon-2014
我想把它转换成 http://example.com/races/nyc-marathon/2014 其中“2014”是创建日期之后的年份。
有什么建议吗?
谢谢:)
答案 0 :(得分:0)