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.

I am building a site that needs pages such as News, Events, Projects and People. My question is, how should I achieve this in WordPress? Do I use custom post types? And if so, how do I have a page for each?

share|improve this question

1 Answer 1

You can also use categories as News, Projects etc. and use category archive page as the archive for them. But this will limit the functionality as you can not easily categorize the posts within that category. So I recommend using cusom post type for that.

If you decide to go with custom post type then you'll need to set the has_archive parameter to true While registering post_type, That will enable archive page for that post type, It uses $post_type as slug for archive page for that custom post type, then archive page url will be mysite.com/post_type/

share|improve this answer
    
That's helpful, distinguishing the use of categories from custom post types - thank you for clearing that up for me. I created a custom post type, with has_archive set to true, but going to /post_type_slug isn't doing anything. –  Oliver Joseph Ash Aug 3 '12 at 11:14
    
does it giving 404 error ? –  amit Aug 3 '12 at 11:30
    
No, it takes me to my home page. –  Oliver Joseph Ash Aug 3 '12 at 11:33
    
this sort of work but I cannot access to mysite.com/post_type/2012/02 for examples. Moreover the links of widget archive always point to thinks like mysite.com/2012/02... –  toto_tico Jun 26 '13 at 4:44

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.