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

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

Snippet Type: PHP

Posted Under: Core

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)