Snippets: Alter Any Post Type Archive To Display Like the Blog

function my_wpex_is_blog_query( $bool ) {
   if ( is_post_type_archive( 'events' ) ) {
	$bool = true; // Make events post type archive render like blog posts
   }
   return $bool;
}
add_filter( 'wpex_is_blog_query', 'my_wpex_is_blog_query' );

Snippet Type: PHP

Posted Under: Core

All PHP snippets should be added via a child theme's functions.php file.