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.

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

wp_get_archives('type=monthly');

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.

Thanks!

W

share|improve this question

1 Answer 1

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

http://codex.wordpress.org/Function_Reference/register_post_type

share|improve this answer

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.