我想知道是否有人尝试过创建这样的永久链接来编辑前端的帖子:
http://example.com/books/750/edit
我的书在哪里custom post type, 750custom post type id 和编辑edit page slug.我知道我可以这样做http://example.com/books/edit/?id=750 但这不是很友好。谢谢
我想知道是否有人尝试过创建这样的永久链接来编辑前端的帖子:
http://example.com/books/750/edit
我的书在哪里custom post type, 750custom post type id 和编辑edit page slug.我知道我可以这样做http://example.com/books/edit/?id=750 但这不是很友好。谢谢
很确定你可以使用Rewrite API 在你的主题功能中实现这一点。php文件。
我正在构建一个插件,该插件将用于单个站点,并依赖于add_rewrite_rule 要工作,需要打开永久链接。打开它们并不困难,因为它只是一个站点,但我担心其中一个管理员可能会在不知道自己在做什么的情况下关闭它,并破坏该站点。如何以编程方式强制保持漂亮的永久链接?