I created two different custom post types in wordpress. But I need same slug for both custom post types. But Only one custom post type is working and another post types is showing as 404 not found. Can anyone help me how can I implement this?
A slug is a URL. Ask yourself this question:
If I were to send you the following two links:
Those are two posts just like you want them.
Then how will the browser know to direct your to one post or the other if the URL is identical?
In other words, you can't have two slugs that are the same.