Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

So I've been playing with many themes lately and finally came back to my old one, and I'm in trouble.

I have (always had actually) a page called Portfolio. It's address is I have a few different pages such as Contact at etc.

Now, the problem is, when I go to it displays a loop from my custom post type called portfolio but not the page itself. Even when I open the page using direct link from wp-admin, it still displays wrong content.

After I delete any page and I try to access it I get 404 page, but after I delete Portfolio there's still this loop under :O

I'm pretty sure /portfolio URL has been hardcoded somehow in my database by one of the previous themes (is it even possible?) and now points to something else. How to fix that?

share|improve this question
A (public) CPT named portfolio will have an archive page at Sounds like things are working as they should be. You need to explain things a bit more. –  s_ha_dum Aug 18 '13 at 3:53
This is strange, because it never had before... I have multiple other public CPTs and they don't have any archive pages as well, also I never set has_archive for register_post_types, any idea how to fix it then? –  Wordpressor Aug 18 '13 at 11:08
Okay, checked the theme on different WP install and /portfolio returns 404 as expected. Still no idea how to fix that. –  Wordpressor Aug 18 '13 at 14:26
It depends on how you register the CPT. You can register them with arguments such that there is no archive, but I am pretty sure that the default is to have an archive page. –  s_ha_dum Aug 18 '13 at 15:49
Sorry. I don't know how to guess what is wrong with your install. I assume you've reset permalinks? –  s_ha_dum Aug 18 '13 at 19:13

Your Answer


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

Browse other questions tagged or ask your own question.