WordPress – How do I create an archive for a CPT
I have created a CPT (Custom Post Type) in Wordpress called "minutes" and am using the following php to give the post an archive add_filter( 'getarchives_where', 'getarchives_where_filter', 10, 2 ); add_filter( 'generate_rewrite_rules', 'generate_events_rewrite_rules' ); function getarchives_where_filter( $where, $args ) {…