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

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

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 www.example.com/portfolio. I have a few different pages such as Contact at www.example.com/contact etc.

Now, the problem is, when I go to www.example.com/portfolio 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 example.com/portfolio :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
1  
A (public) CPT named portfolio will have an archive page at www.example.com/portfolio. 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
1  
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
1  
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

 
discard

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

Browse other questions tagged or ask your own question.