Forums

[resolved] Edit permalink won't save under write page admin (9 posts)

  1. orbital2000
    Member
    Posted 2 years ago #

    I deleted a page, but later decided that I wanted it back. After recreating, WordPress has given it a permalink of "Blog-2", when it should be just "Blog".

    In the write page admin panel, I try to use the "edit permalink" feature, but upon updating the page and reposting, it reverts back to "Blog-2".

    Any way around this? I'm on my local XAMPP - does that matter?

  2. orbital2000
    Member
    Posted 2 years ago #

    Just notice something very strange.

    My blog template is a custom template, called "Blog". In the php file, I have the standard:

    <?php
    /*
    Template Name: Blog
    */
    ?>

    The "Blog" link in my nav bar now takes you to "Blog-2", which doesn't reflect the page layout of "Blog". The strange part is, there is no Blog-2 template, and I don't know where the alternate layout is coming from.

    I can delete the entire contents of the "Blog" template, and the "Blog-2" page doesn't change, so it's as if there's no connection.

    What happened to my Blog template?

  3. orbital2000
    Member
    Posted 2 years ago #

    Never mind that second part about my template not showing correctly. Just fixed it.

    BUT, still can't edit my permalink in the write post panel.

  4. jtherrell
    Member
    Posted 2 years ago #

    I'm having this same problem orbital....hoping that someone can help us out. I've been looking in the wordpress database, not sure if I'm supposed to delete records in the wp_posts table where I originally created and deleted the blog page...???

  5. jtherrell
    Member
    Posted 2 years ago #

    Trying this now orbital.....I think I used the trash feature instead of delete my original blog page. Found this link.. http://en.support.wordpress.com/deleted-posts-and-pages/

  6. orbital2000
    Member
    Posted 2 years ago #

    Resolved.

    In case anyone else has this problem:

    If you write a page, delete it, then recreate it - WP may give it a hyphenated page name, like "Blog-2". After deleting and rewriting several times, I noticed that there were a number of deleted "Blog" pages still in my admin trash. I cleared out all trash items, and WP then allowed me to change the url/slug of the "Blog-2" page back to just "Blog".

    Apparently, if there are multiple instances of a page (even in the trash), WP will not allow you to change the slug.

  7. jtherrell
    Member
    Posted 2 years ago #

    Okay that fixed my issue. The problem was that the original blog page I created was not permanently deleted, but rather in the trash.
    If you go to Dashboard>Pages, you'll see (underneath the "Edit Pages" title) the listing of all your pages, along with their current status (all, published, draft , trash). click the trash link and delete your pages from your trash bin. Once this is completed, you'll be able to change your recreated blog page to have the /blog permalink

    Hope this works for you :)

  8. orbital2000
    Member
    Posted 2 years ago #

    That was my issue exactly. Sorry if I wasn't clear enough. I had deleted pages without knowing they were still looming in the trash. Permanent deletion fixed my problem.

  9. Gouri
    Member
    Posted 1 year ago #

    It may also happen when the category slug and tag slug are same..

Topic Closed

This topic has been closed to new replies.

About this Topic