WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] permalinks for identical post slugs

[Resolved] permalinks for identical post slugs

  • gik
    Member

    @gik

    I have following permalink structure: /%post_id%/%postname%.html
    As i know in this case wordpress could identify article id directly from uri.
    But when I create two post with same name wordpress engine adds numbering to the post slug.
    I need:
    /1234/my-article.html
    /5678/my-article.html
    But I get:
    /1234/my-article.html
    /5678/my-article-2.html

    Is it possible to resolve this feature?

Viewing 7 replies - 1 through 7 (of 7 total)
  • petit
    Member

    @petit

    Yes.

    One would be to skip the %post_id% part and just use the more informative and search engine friendly %postname%.html.

    I can see your point, that %post_id% identifies a post in a very secure way, but when you use %postname% in your permalink, WordPress has to qualify the post slug with a number, in case you change your mind and want to use only the slug.

    Kafkaesqui
    Member

    @kafkaesqui

    The following plugin should help:

    http://jamietalbot.com/wp-hacks/singular/

    vkaryl
    Member

    @vkaryl

    Kaf, you have to put a space before a link that starts a line in order to make it be a link….

    Kafkaesqui
    Member

    @kafkaesqui

    What, Copy&Paste is too 1998?

    vkaryl
    Member

    @vkaryl

    Apparently…. welcome to the wordpress 21st century.

    gik
    Member

    @gik

    Kaf, thank you for plugin. It’s what I need!
    Petit, I have a lot of articles, and only postname in URI can’t be solution for my blog.

    petit
    Member

    @petit

    Ahh..
    Happy you found a solution 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] permalinks for identical post slugs’ is closed to new replies.