如何为自定义帖子类型类别创建自定义URL结构?

我基本上是试图从以下方式重写wordpress中自定义分类法的url结构:

https://dev.energypages.com/specialization/energy-supply-distribution

至:

https://dev.energypages.com/specialization?specializingin=(此处为父类别)

和:

https://dev.energypages.com/specialization?specializingin=(此处是父类别的子弹)&specialitiesin =(此处是子类别的子弹)

我一直在查询vars, 但似乎无法弄清楚我需要的代码结构。

非常感谢你对入门的任何帮助。


#1


你可以将此插件用于自定义帖子类型的自定义永久链接。 https://wordpress.org/plugins/custom-permalinks/我认为它将为你服务。

来源:

https://www.srcmini02.com/63214.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41945.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?