WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks with added numbers (4 posts)

  1. Shyzer
    Member
    Posted 1 year ago #

    I have a blog that uses the /%year%/%monthnum%/%day%/%postname%/ permalink structure. Through the nature of the topic covered, I sometimes need to use the same Post Name. However when this happens, a dashed number is added to the end so it looks like/%year%/%monthnum%/%day%/%postname%/-#.

    For instance, one link may read /2010/11/20/black-friday-deals while the next year it is /2011/11/21/black-friday-deals-2

    Is there any way to stop this from happening? The way I see it, since the year & date have changed, there should be a way to make the permalink without the added number. Or is this currently impossible and something I should suggest on the Ideas board?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Is there any way to stop this from happening?

    No - it's deliberate to stop permalink clashes should you change to just using \%postname%

  3. Shyzer
    Member
    Posted 1 year ago #

    Ahh, I can see how that would make sense. That being said, is it set 100% in stone? Is there a hack or anything that can be done to disable this? I understand it would prevent me from never changing to just \%postname%, but I know I won't ever do that on this certain site.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'm sorry - there's no hack. Anything like that could seriously mess up WordPress internally.

Topic Closed

This topic has been closed to new replies.

About this Topic