WordPress.org

Ready to get started?Download WordPress

Forums

WordPress adds numbers to the end of my Categories/Pages Permalinks!?? (14 posts)

  1. aw360
    Member
    Posted 3 years ago #

    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!!

  2. crossedgenres
    Member
    Posted 3 years ago #

    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?

  3. Michael
    Member
    Posted 3 years ago #

    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

  4. aw360
    Member
    Posted 3 years ago #

    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

  5. Michael
    Member
    Posted 3 years ago #

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

    Michael

  6. aw360
    Member
    Posted 3 years ago #

    RoseAppleMedia, how do i do that in wp?

  7. aw360
    Member
    Posted 3 years ago #

    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

  8. aw360
    Member
    Posted 3 years ago #

    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??

  9. aw360
    Member
    Posted 3 years ago #

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

  10. aw360
    Member
    Posted 3 years ago #

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

  11. scruffy.mogwai
    Member
    Posted 3 years ago #

    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

  12. Jay
    Member
    Posted 3 years ago #

    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?

  13. alxndrmlr
    Member
    Posted 3 years ago #

    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?

  14. wpbless
    Member
    Posted 3 years ago #

    thank you scruffy!!!

Topic Closed

This topic has been closed to new replies.

About this Topic