的,我想修改的职位目前的永久链接结构包括一个日期,它是在设置页面中配置,如:“/%,比去年%/%monthnum%/%天%/ %类别%/%postname%/”更改永久链接结构
一个例子公布网址:http://example.com/2016/09/11/category/child-category/long-post-slug-is-printed-here/
我的问题是,我无法弄清楚如何修改标记有特定标签的帖子这个固定链接结构,所以例如,如果我有一个标签“永久-STRUC-2”,我把它添加到我的帖子,我想那么永久改写为:http://example.com/category/child-category/long-post-slug-is-printed-here/ 的日期应该从后永久被剥离。
我使用WP滤波器 “POST_LINK”
尝试的add_filter( 'POST_LINK',阵列($此, 'change_permalink_date_structure'),1,3);
但是最终情况是,URL被改变,但是当我试图访问距离缩短的URL后,它仍然重定向到原来的 - >http://example.com/2016/09/11/category/child-category/long-post-slug-is-printed-here/
任何人都可以在这个问题上需要帮助,请?
感谢
你能告诉我实际上想要存档吗? –
我想更改标记为特定标记的帖子的永久链接结构 – dulesaga
您目前的网址是什么? –