Title: Post types &#8211; duplicates
Last modified: August 20, 2016

---

# Post types – duplicates

 *  [status4](https://wordpress.org/support/users/status4/)
 * (@status4)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/post-types-duplicates/)
 * Hey. I am running a site using one custom post type and the standard post type.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * My permalin structure is only the postname. If I create an article called “hell
   world” and a second one called “hello world” the slugs would be automatically“
   hello-world” and “hello-world-2”, which is great. But if I create a post by custom
   post type and name it “hello world” too, then the slug will be “hello-world”,
   so I got a duplicate slug which causes trouble. Because my permalinks ar only
   postnames.
 * So the problem is, if I have two posts with the same name but with different 
   post types, I get wrong results on single pages.
 * Any ideas how to solve this problem?
 * Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Peter_L](https://wordpress.org/support/users/peter_l/)
 * (@peter_l)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/post-types-duplicates/#post-2426851)
 * try adding custom post type in between
 * [http://www.blog.com/customposttype/postname](http://www.blog.com/customposttype/postname)
 *  Thread Starter [status4](https://wordpress.org/support/users/status4/)
 * (@status4)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/post-types-duplicates/#post-2426853)
 * [http://pastebin.com/dhnY1KMq](http://pastebin.com/dhnY1KMq)
 * Above is my code.
 * Hi Peter. This is done. It´s [http://example.org/lifestream/postname](http://example.org/lifestream/postname)
 * But it seems like only the last part is used to identify the post.
 * E.g. I created a normal post called “Test 1” which has the slug “post-1”. Then
   I create a custom post type called “Test 1” and it automatically get the slug“
   test-1” too. And when I call [http://example.org/lifestream/test-1](http://example.org/lifestream/test-1)
   wp redirects to [http://example.org/test-1](http://example.org/test-1) (the normal
   post type article created first)
 *  [Peter_L](https://wordpress.org/support/users/peter_l/)
 * (@peter_l)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/post-types-duplicates/#post-2426876)
 * I’m not very familiar with custom post types but I have something similar which
   works fine.
 * I do have some different values in the $args for the register_post_type function:
 *     ```
       'rewrite' => true,
       'capability_type' => 'post',
       ```
   
 * Not sure if this will solve your problem though.
    And honnestly, be creative.
   Don’t name your custom post type posts the same as your normal posts.
 *  Thread Starter [status4](https://wordpress.org/support/users/status4/)
 * (@status4)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/post-types-duplicates/#post-2426877)
 * I will give it a try.
 * The posts are created automatically, so I have no chance to give it a name by
   myself.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Post types – duplicates’ is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [status4](https://wordpress.org/support/users/status4/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/post-types-duplicates/#post-2426877)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
