WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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

How would I do this? archive.php only has this:


And wp_get_archives() does not have a parameter to display all post types.

Also I think archive-[post_type].php is not the one I am looking for since I want all post types to be displayed in one archive page.



share|improve this question
up vote 4 down vote accepted

If you set up the right parameters for your custom post type using

'has_archive' => true // Will use the post type slug, ie. example
// or 
'has_archive' => 'my-example-archive' // Explicitly setting the archive slug


share|improve this answer

Your Answer


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.