WordPress 自定义帖子类型 &分类重写问题

发布于 2024-11-25 12:20:39 字数 281 浏览 2 评论 0原文

我在使用自定义帖子类型和 URL 重写时遇到问题分类法。

这是我的实际代码 http://pastebin.com/Q8USd2Tv (我删除了标签等内容)

我想要我的链接是这样的:

概述页面:/base/ 分类法:/base/分类法名称 详细信息页面:/base/taxonomy-name/single-name

您能帮我解决这个问题吗?

谢谢。

I have a problem with URL rewrite with cutom post type & taxonomies.

Here is my actual code http://pastebin.com/Q8USd2Tv (I removed stuff like labels etc.)

I want my link to be like this:

Overview page: /base/
Taxonomy: /base/taxonomy-name
Detail page: /base/taxonomy-name/single-name

Can you please help me with this?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

星光不落少年眉 2024-12-02 12:20:39

也许您的答案是我的一个插件,Taxonomic SEO Permalink。目前 WordPress 支持分类法,但默认情况下无法在永久链接结构中使用自定义分类法。所以我创建了这个插件来帮助我在 URL 中进行自定义分类。

该插件有助于实现与类别类似的自定义分类。最近我添加了支持 url 中子分类的功能。它并不那么完美,但在一定程度上解决了问题。

Maybe your answer is a plugin of mine, Taxonomic SEO Permalink. Currently WordPress supports taxonomies but one is not able to use custom taxonomy in permalink structure by default. So I created this plugin that helped me in having custom taxonomy in URLs.

This plugins helps behave custom taxonomy similar to categories. Recently I added feature that supports sub-taxonomies in url. It's not that perfect but it solves the problem to some extent.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文