WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Same Slug (5 posts)

  1. jana26
    Member
    Posted 1 year ago #

    Hello to the world.

    I'm trying to build pages with this structure:

    item a - description - gallery
    item b - description - gallery

    I'm working with %category%/%postname%/ and it adds a 2 to the slugs of the second pair of subpages. Is there any way that I can avoid that? I want to have clean url's.

    Thank you for your time and have a nice day.

  2. James Duffell
    Member
    Posted 1 year ago #

    @jana26 if the names of the pages are unique it generally shouldn't add the "-2" it could be worth changing the trash tab to see if a page exists with the same URL

  3. jana26
    Member
    Posted 1 year ago #

    @james there's nothing in the trash. I want to have childpages of different parents with the same name. unfortunately there is a number added to the slug. I don't want to have an url with item345/description-345/. I want item345/description/

  4. James Duffell
    Member
    Posted 1 year ago #

    Hmm very strange, generally different parents mean you can have the same name for a subpage, do you have link to the site in question?

  5. jana26
    Member
    Posted 1 year ago #

    Ok, thanks. I was confusing posts and pages. Sorry.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.