点击“确定”和“更新”后无法更改永久链接的网址
3 个回答
- 投票数
-
- 2012-01-03
您是否以某种方式隐藏/删除了子弹metabox?(类似的内容位于您的functions.php中吗?)
function remove_post_meta_box() { remove_meta_box('slugdiv', 'post', 'normal'); } add_action('admin_menu', 'remove_post_meta_box');
如果是这种情况,则会导致错误. 已经有一个 Trac 票证,但是目前解决此问题的唯一方法是删除它.
Have you somehow hidden/removed the slug metabox? (is something like this located in your functions.php?)
function remove_post_meta_box() { remove_meta_box('slugdiv', 'post', 'normal'); } add_action('admin_menu', 'remove_post_meta_box');
If that's the case, it's causing the error. There is a Trac ticket for this already, but the only way to currently solve it is to remove it.
-
- 2012-01-03
我将原为"父级"的页面的标题更改为其他几页-就像您说的那样,固定链接一直返回到原始页面标题.我设法通过转到页面列表,选择我的父页面的"快速编辑"(而不是"编辑"选项)来更新我的我,然后将"子句"更改为我的新标题-按更新以保存.这样可以正确保存我的父页面以及所有子页面的永久链接名称.希望有道理.
I changed the title of a page which was a "parent" to a few other pages - as you say the permalink kept going back to the original page title. I managed to update mine by going to the page listings, selecting "quick edit" of my parent page (rather than the "edit" option), then changed the "slug" to my new title - press update to save. This correctly saved the permalink name for my parent page and all the pages which were children. Hope that makes sense.
-
- 2016-02-03
在我的情况下,我遇到了无法更改永久链接的相同问题:
http://mysite/action-2
.我尝试将其更改为http://mysite/action
的任何操作均无济于事.我没有垃圾桶中的页面或帖子,因此没有引起问题.必须有一个占据永久链接的页面,所以我只输入:http://mysite/action
,它是一个包含图像的页面,但Wordpress中没有任何页面使用该图像,因此我检查了媒体库,并找到了显示在http://mysite/action
上的图像.由于我没有使用该映像,因此将其从库中删除并清除了缓存.当我检查页面上的永久链接时,我看到页面标题中的永久链接已自动更改!问题解决了.:-)I had the same issue not being able to change the permalink, in my case:
http://mysite/action-2
. Whatever I did trying to change this tohttp://mysite/action
, nothing worked. I had no pages or posts in trash so that was not causing the problem. There had to be a page occupying the permalink so i just typed in:http://mysite/action
and there it was, a page containing an image, but there just wasn't any page within Wordpress with that image so I checked the media library and found the image that was presented onhttp://mysite/action
. Since I didn't use that image I deleted it from the library and cleared the cache. when I checked the permalink on the page, I saw the permalink automatically had changed in the page title! Problem solved. :-)
我正在尝试更改我的帖子的标题和它们各自的永久链接.编辑标题和永久链接并单击"确定"后,永久链接似乎已临时更改.但是,当我单击"更新"时,永久链接将恢复为原始状态.
有什么可能阻止我可能忽略的更改?