WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When we make a custom post type (in my case 'news'(slug is news also)) and a page is with name 'News' (with slug 'news').

Then when I add some pages with parent 'news', it's displaying 404 in '%postname%' permalink setting. But it's fine with default permalink structure.

I have some post types under 'news' post type also.

Slug is conflicting that's why this is happening, but I wanna know is it a bug or something else ?

share|improve this question
Please rephrase your question - especially the title. How can this title appear in the SERPs or be found using this sites internal search? – kaiser Mar 31 '14 at 13:33
Like kaiser said, please clarify the problem you are describing, it is somewhat unclear what you are asking. One guess would be, that there is a rewrite rules conflict between the archive page for your custom post type and the page news you created, but that's if I understood correctly what your are saying. – ialocin Mar 31 '14 at 13:42
why negative rating to newbie all the time? May i know what i am missing in asking ? thx – shyammakwana.me Apr 1 '14 at 8:32

No it's not a bug. Pages are effectively a Post Type and so is your Custom Post Type. So assuming you created a Page called news but then you declared a new CPT also called news then Wordpress can't determine which is correct. To explain this another way, if you were to create a page called news and then another one called news, the slug would be news2 but because you are declaring the slug for the CPT this is what is causing the problem. Because you've hard-coded the slug in your functions.php file wordpress doesn't automatically amend it like it does with new pages (news2, news3, etc.). You could consider a different slug for your CPT perhaps? The following post may help to understand the different post types: http://codex.wordpress.org/Post_Types HTH

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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