The internet is swamped with this issue but all the results were from 2010-2011 so I wanted to check if there was any advancement in the matter.

I have the following scenario:

  • Created a custom post type "videos"
  • Created a parent page "Videos"
  • Created a child page "New Video"
  • Changed permalinks to %category%/%postname%

WP automatically created the permalink for the child page as www.example.com/videos/new-video but the page leads to a 404 Not Found error.

  • Re-saving permalink settings does not solve the problem
  • Changing the parent page slug to "videoss" solves the problem
  • Changing the custom post type to "video" solves the problem

Is there any way to have both custom post type and parent page slug set to "videos" under the aforementioned permalink structure?

  • No this will not work because WordPress will always look for item "New Video" from custom post type "Video". which is not present, thus 404 error. Posts always have more priority over pages in rewrite rules. But you can change the priority order I guess. Check more here. wordpress.stackexchange.com/questions/22438/…
    – Robert hue
    Oct 1, 2014 at 5:10
  • Great. Thank you very much. I'm afraid I don't yet know how to mark my question as answered or select your comment as the solution.
    – corre
    Oct 1, 2014 at 6:33

1 Answer 1


I ended up changing the post type to 'video' to avoid the slug conflict with page 'Videos'.

I it a WP default behavior to give priority to the post type over the page slug:

How to make pages slug have priority over any other taxonomies like custom-post, post or category

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.