Support » Fixing WordPress » Permalink forcing "-2" after post type name

  • I have a few different custom post types on a site I’m building. Some of these ‘entities’ share a name. I have, for example, a car name “viper” and a snake type “viper”. These are using completely different rewrites to get completely different URLs, repsectively:

    – viper (car) is:
    – viper (snake) is:

    My issue is that on the post type that I create after the first, that shares a name, a -2 is getting appended, e.g:
    viper (snake) is getting:

    Is there a way to change this? These shouldn’t conflict since the URLs are completely different and it would only make sense if there were two snakes named “viper” with a permalink of “viper”.

Viewing 1 replies (of 1 total)
  • Also, just to be clear, the rewrite argument for each is different. I could explain this away if they were the same but this is what I have:

    'rewrite' => array('slug' => 'cars', 'with_front' => false)


    'rewrite' => array('slug' => 'snakes', 'with_front' => false)
Viewing 1 replies (of 1 total)
  • The topic ‘Permalink forcing "-2" after post type name’ is closed to new replies.