============原始的情况=======================
single
http://mysite.com/custom-post-type/post
archives
http://mysite.com/custom-post-type/
http://mysite.com/custom-taxonomy/term/
http://mysite.com/custom-taxonomy/term/child-term/
==========利用某插件后,现在的情况=============================
single
http://mysite.com/custom-post-type/term/childterm/post
archives
http://mysite.com/custom-post-type/
http://mysite.com/custom-post-type/custom-taxonomy/term/
http://mysite.com/custom-post-type/custom-taxonomy/term/child-term/
archives or
http://mysite.com/custom-post-type/
http://mysite.com/custom-taxonomy/term/
http://mysite.com/custom-taxonomy/term/child-term/
===========其实我想要的理想的情况==============================
single
http://mysite.com/custom-post-type/term/childterm/post
archives
http://mysite.com/custom-post-type/
http://mysite.com/custom-post-type/term/
http://mysite.com/custom-post-type/term/child-term/
===========请问有什么好的办法?=============================
1
emric 2015-12-07 02:15:16 +08:00
如果你插件是增加文章类别 (register_post_type) 的, 把固定连接设置成 `/%postname%/` 就行.
|
3
falcon05 2015-12-07 14:40:09 +08:00 via iPhone
某插件叫啥,我看下它的重写规则
|
4
GNiux 2015-12-07 19:05:33 +08:00 via iPhone
|
5
falcon05 2015-12-07 20:14:44 +08:00 via iPhone
rewrite rule 是写在 options 表的
|
6
fishjar OP @falcon05
使用了这个插件: https://wordpress.org/plugins/custom-post-type-permalinks/ 其实已经很接近我的目标了 唯一问题是如何把 archive of term 的 permalink 中的 taxonomy slug 去掉 |