Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
2  
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 at 13:33
1  
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 at 13:42
    
why negative rating to newbie all the time? May i know what i am missing in asking ? thx –  TechnoKnol Apr 1 at 8:32
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.