如何根据附加的自定义分类法设置自定义记录类型的URL?
我创建了一个自定义帖子类型(storages)/storage/:
也附上了自定义分类法(区域)/storage/us/new-york/:
现在,当添加任何记录时,我会生成以下类型/storege/storage/my-nockorage/的URL。
如何实施以使分类法的层次结构在URL中观察和替代?
如何获得此结果:/storage/us/new-york/my storage 或/storage/us/my-starge
I created a Custom Post Type (Storages) /storage/:
Also attached to them Custom Taxonomies (Regions) /storage/us/new-york/:
Now, when adding any record, I generate a url of the following type /storage/my-storage/.
How to implement so that the hierarchy of taxonomies is observed and substituted in the url?
How to get this result: /storage/us/new-york/my-storage or /storage/us/my-storage
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我所有的问题均由插件解决: https://wordpress.org/wordpress.org/plugins/plugins/wp--wp--wp--wp---wp--wp---更好的permalinks/
All my problems were solved by the plugin: https://wordpress.org/plugins/wp-better-permalinks/