[英]add category to url for only posts of particular category in Wordpress
I am aware that I can change the url structure using /%category%/%postname%/
to show the category in the url but I only want this effect for posts with category = 'Articles'
. 我知道我可以使用/%category%/%postname%/
更改url结构以在url中显示类别,但我只希望对category = 'Articles'
帖子具有此效果。
How can this be achieved? 如何做到这一点?
您可以为此使用插件,尝试重定向或custom-post-type-permalinks
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.