For the site I am making, I have a few post types: News, Events, Projects, Placements. Each one of these post types will need its own archive page, accessible through the navigation. I am able to create these post types using the Types plugin, but my question is how do I create a archive page for them? I can't figure out what the URL will be. /projects for the post type with slug projects gives me nothing.

I think I understand how the templates for custom post types work (archive-{post-slug}.php), but I don't know how to make these pages accessible.

1 Answer 1


When a post type is registered, you need to at least set has_archive to true. This will use the post type name as the slug for archive. You can also specify a string representing the slug for has_archive:

'has_archive' => 'projects'

This should be accessible under Type's advanced settings, according to their documentation.

  • I've got that set to true. Still can't access it via /projects, though? Not sure if I'm supposed to be able to? Commented Aug 2, 2012 at 19:54
  • has_archive is checked. It says this below: Allow custom post type to have index page. Default: not set. Commented Aug 2, 2012 at 19:57
  • I'm using Types because I find the WordPress API very confusing! Commented Aug 2, 2012 at 19:58
  • I'm not familiar with how Types works, so it may be a question for their support. If the post type is registered as projects, then setting has_archive to true should make the archive available at that slug.
    – Milo
    Commented Aug 3, 2012 at 17:17
  • Got it in the end. Forgot to actually make a template! Now I need help with this: wordpress.stackexchange.com/questions/60732/… Commented Aug 3, 2012 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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