Archive pages with register post types and custom post types
-
Hello all,
I am experimenting with register post types with WordPress 3.0. I have managed to create a post and using the rewrite options i have created a permalink so it is podcast/article-name.
I have also managed to create a custom template file to print out the information.
This is all based on the brilliant article at https://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0/.
Normally with previous versions of WordPress these posts would belong to a category called podcast so an archive page is automatically called /podcast/. How can i create the same effect with register_post_type because currently going to /podcast it goes to a 404 despite there being an article at podcast/article-name?
I understand I can have a wp_query which passes through the values but I’d need to create a page or something for that query to live at. I would prefer if an archive page could be automatically created to save having lots of empty pages in the wordpress admin.
Many thanks
Dave.
- The topic ‘Archive pages with register post types and custom post types’ is closed to new replies.