最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Can't change permalink url after hitting 'ok' and 'update'

programmeradmin1浏览0评论

I am trying to change some of the titles of my posts and their respective permalinks. After I edit the title and permalink and click 'ok', the permalink appears to have changed temporarily. However, when I click 'update', the permalink changes back to what it was originally.

Is there anything that may be preventing the change that I might have overlooked?

I am trying to change some of the titles of my posts and their respective permalinks. After I edit the title and permalink and click 'ok', the permalink appears to have changed temporarily. However, when I click 'update', the permalink changes back to what it was originally.

Is there anything that may be preventing the change that I might have overlooked?

Share Improve this question edited Nov 17, 2011 at 22:37 John asked Nov 17, 2011 at 22:19 JohnJohn 1872 gold badges3 silver badges8 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 4

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.

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.

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 to http://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 on http://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. :-)

发布评论

评论列表(0)

  1. 暂无评论
ok 不同模板 switch ($forum['model']) { /*case '0': include _include(APP_PATH . 'view/htm/read.htm'); break;*/ default: include _include(theme_load('read', $fid)); break; } } break; case '10': // 主题外链 / thread external link http_location(htmlspecialchars_decode(trim($thread['description']))); break; case '11': // 单页 / single page $attachlist = array(); $imagelist = array(); $thread['filelist'] = array(); $threadlist = NULL; $thread['files'] > 0 and list($attachlist, $imagelist, $thread['filelist']) = well_attach_find_by_tid($tid); $data = data_read_cache($tid); empty($data) and message(-1, lang('data_malformation')); $tidlist = $forum['threads'] ? page_find_by_fid($fid, $page, $pagesize) : NULL; if ($tidlist) { $tidarr = arrlist_values($tidlist, 'tid'); $threadlist = well_thread_find($tidarr, $pagesize); // 按之前tidlist排序 $threadlist = array2_sort_key($threadlist, $tidlist, 'tid'); } $allowpost = forum_access_user($fid, $gid, 'allowpost'); $allowupdate = forum_access_mod($fid, $gid, 'allowupdate'); $allowdelete = forum_access_mod($fid, $gid, 'allowdelete'); $access = array('allowpost' => $allowpost, 'allowupdate' => $allowupdate, 'allowdelete' => $allowdelete); $header['title'] = $thread['subject']; $header['mobile_link'] = $thread['url']; $header['keywords'] = $thread['keyword'] ? $thread['keyword'] : $thread['subject']; $header['description'] = $thread['description'] ? $thread['description'] : $thread['brief']; $_SESSION['fid'] = $fid; if ($ajax) { empty($conf['api_on']) and message(0, lang('closed')); $apilist['header'] = $header; $apilist['extra'] = $extra; $apilist['access'] = $access; $apilist['thread'] = well_thread_safe_info($thread); $apilist['thread_data'] = $data; $apilist['forum'] = $forum; $apilist['imagelist'] = $imagelist; $apilist['filelist'] = $thread['filelist']; $apilist['threadlist'] = $threadlist; message(0, $apilist); } else { include _include(theme_load('single_page', $fid)); } break; default: message(-1, lang('data_malformation')); break; } ?>