Cannot change permalink/slug "-2" append
Go on the page or post you want to edit and you will see the url and if you do not have a same copy in thrash then click edit where url is change that url take -2 out and update
Also, there are no instances of the page in the trash. I had originally successfully created the page with the proper permalink, but moved it into the trash, then emptied the trash. Upon recreating the page I can no longer use the original permalink under any circumstances.
“Go on the page or post you want to edit and you will see the url and if you do not have a same copy in thrash then click edit where url is change that url take -2 out and update”
That normally works, but it isn’t happening here. There is not another copy in the trash, and even after editing and hitting OK it still adds the “-2” back. Bypassing “OK” and clicking “Update” instead also fails. There is no category, file, post, or other page with the same title. In fact, the only instance of the page title in the entire WP database is the page I’m trying to fix, and even in the db it has the “-2” added. Even editing it directly via phpmyadmin does not fix the page – upon refeshing it, the “-2” is back again.
There has to be duplicate somewhere thats why it will not let you change.
is this a page or post
Ok, here’s another really weird element.
The page title in this case is mysite.com/05240113161205. When visiting mysite.com/05240113161205, however, the site somehow automatically redirects me to mysite.com/05240113161205-2 instead of giving me a 404 for the nonexistent page.
“There has to be duplicate somewhere thats why it will not let you change.
is this a page or post”
That’s my thought. There is nothing at all in the trash though, and the database doesn’t have any records of the original page.
This is a page. The only post is the “hello world” that comes with it.
The page title in this case is mysite.com/05240113161205. When visiting mysite.com/05240113161205,
Can I ask why you have all numbers
The page name references the ID of a resume/file to be displayed on the site, I believe. I’m not involved in the process which determines the name of the pages, but this error was pointed out to me earlier this afternoon by those who are, and after pulling a considerable amount of hair out I’m completely stuck as to why WP won’t let me make this change.
Hmm, I think you’re onto something with the numbers, govpatel. When I try to change the permalink to 05240113161204 or 05240113161203, those also add the “-2” to the permalink. Apparently it’s not doing this because of a duplicate post_name anywhere, but because those numbers or that pattern must be reserved by WP.
I have hit this same issue (I want a page to be titled “2008” and for its permalink to reflect that) and so far as I can tell there is no solution.
I imagine this has to do with the mere existence of date-based permalinks i.e. http://yoursite.com/2008/05/01/this-s-a-post — WordPress seems to be assuming that this is the only reason anyone would want to use a number in a permalink.
Hoping someone can prove me wrong — I haven’t looked too far into it yet, but it seems, at least on the surface, this this is what’s going on.
Having this issue as well.
I want to have a permalink structure that looks like:
When I create the page for the year ‘2007‘ the permalinks changes to ‘2007-2‘
I also need to have a 301 redirect map in my htaccess file but want this to look the way I want before I go ahead and add these 301s to the file.
Any insight out there?
Try empting your trash and deleting any drafts. Then review Using_Permalinks
Ah, so you are saying that an attempt to name a page something purely numerical may not work because of the way wordpress uses “Pretty” or “Almost Pretty” permalinks.
I shall rename my /news/2007/ to /news/Y2007/ or something like this.
%year% The year of the post, four digits, for example 2004 %monthnum% Month of the year, for example 05 %day% Day of the month, for example 28 %hour% Hour of the day, for example 15 %minute% Minute of the hour, for example 43 %second% Second of the minute, for example 33
I had the same issue. Couldn’t name a page just numbers.
Wordpress Version 3.3.1
I solved this issue by using a plugin called “Permalink-editor” version 0.2.12
After that was installed, I am able to clicked “Customize” instead of “edit” permalink on the page edit. That worked! 🙂
- The topic ‘Cannot change permalink/slug "-2" append’ is closed to new replies.