WordPress.org

Support

Support » How-To and Troubleshooting » WordPress adds numbers to the end of my Categories/Pages Permalinks!??

WordPress adds numbers to the end of my Categories/Pages Permalinks!??

  • aw360
    Member

    @aw360

    wordpress is doing some strange things when it comes to assigning permalinks to my pages. the first time i add a new sub-category or page, everything works fine and wordpress creates a permalink like so:

    sample sub-category:
    domain.com/category/sub-category/sample

    sample page:
    domain.com/page

    BUT if for some reason i need to delete/change/re-add the sub-category or page, this is what wordpress changes the permalinks to:
    domain.com/category/sub-category/sample-sub-category
    and
    domain.com/page-2

    and if i had to delete/change/re-add it again, it would give me:
    domain.com/category/sub-category/sample-sub-category-2
    and
    domain.com/page-3

    this is really frustrating!! it’s messing up my entire link structure. it’s as if there’s some sort of cache that needs to be cleared so that wordpress can re-assign the original permalink. how can i resolve this issue? how can clear this ‘cache’?

    PLEASE HELP!!

Viewing 13 replies - 1 through 13 (of 13 total)
  • crossedgenres
    Member

    @crossedgenres

    It’s doing this to me too. I noticed it only seems to do that with slugs that are all-number: so, “i001” is fine, but “001” gets changed to “001-2”. No idea why, except maybe it looks like an id and it’s protecting itself against confusion?

    Michael
    Participant

    @roseapplemedia

    These are put on the end of duplicate slugs. You will need to delete the old posts and them delete them permanently from the trash to stop this from happening.

    Michael

    aw360
    Member

    @aw360

    yeah, but even if i try to change the slug/permalink manually, i can’t. it won’t let me. it always goes back to the versions i mentioned about. uuughhhh

    Michael
    Participant

    @roseapplemedia

    It will keep doing it until you delete the duplicates “permanently” for the WP database.

    Michael

    aw360
    Member

    @aw360

    RoseAppleMedia, how do i do that in wp?

    aw360
    Member

    @aw360

    and RoseAppleMedia, i don’t think it’s so much deleting the old posts, as it it deleting the category/page cache. how do i do this? clear all the old category/subcategory/pages cache in wordpress

    aw360
    Member

    @aw360

    found a good post about this (http://jeremyrandall.org/technology/removing-old-urls-slugs-from-wordpress-posts), but not sure how to execute it.

    any ideas??

    aw360
    Member

    @aw360

    figured it out!! i access my MySQL database through my host’s PHPMyAdmin and located and deleted the old slugs/posts. problem resolved!

    aw360
    Member

    @aw360

    love how i’m having a full-out conversation with myself :p

    scruffy.mogwai
    Member

    @scruffymogwai

    This didn’t work for me, but I did find a solution.
    Delete your page then:
    Under the dashboard go to Pages (not “Add New”),
    Above the page list and the actions (Bulk Actions, etc) are several links:
    All, Published, Drafts, Trash
    Click on trash and select all the items and from the “Bulk Actions” drop-down choose “Delete Permanently”.
    Then try to re-create your page and hopefully your permalink will not be followed by -2 (eg: yourpage-2).

    HTH
    Nick

    BTW: I am using Wp 3.0.1

    Jay
    Member

    @fectio1

    Hello,

    I have tried every suggestion up here.. To include, emptying the trash, deleting old_slug from database and re creating the page.. Nothing works.. any other suggestions?

    alxndrmlr
    Member

    @alxndrmlr

    I’m having the same issue as above we tired a fresh install of wordpress but the same issue arises.

    I have no posts at all only the default about page.

    I set the permalinks to use the postname

    Then I create a page titled, “365”

    However wordpress forces me to use “365-2” as the url.

    I that this is because of the fact that the url I’m trying to make is a number and the routing engine is reserving number based urls for dates otherwise the could be some conflicts.

    Does anyone know how to solve this other than hacking away at wordpress?

    thank you scruffy!!!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘WordPress adds numbers to the end of my Categories/Pages Permalinks!??’ is closed to new replies.