Archive Page for Multiple Custom Post Types


(Damith) #1

Is there any action hook or filter or whatever thing to create a archive page which includes multiple custom post types?


#2

Archive pages are made with templates, or some code to generate it arbitrarily in any page, using a shortcode or hook. I recommend you start at https://codex.wordpress.org/Templates#Archives.2C_Categories.2C_and_Special_Pages. :slight_smile:


(Leland Fiegel) #3

You would just need to create a template file with multiple loops on it. One with the “default” custom post type, then a second loop with another one. This should point you in the right direction: https://codex.wordpress.org/Class_Reference/WP_Query