custom post type with duplicate title doesn't get queryed by slug
-
I made a wordpress theme with the custom post type “event”. When I create 2 events with the same title the slug is generated correct: e.g. “/event/my-first-event” and “/event/my-first-event-2”. But if I browse to “/event/my-first-event” – the loop gives me both events. If I browse to “/event/my-first-event-2” I get the 404 page.
Any idea how to fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘custom post type with duplicate title doesn't get queryed by slug’ is closed to new replies.