skip to Main Content

Replace Page Header Subheading with Post Date

add_filter( 'wpex_post_subheading', function( $string ) {
	if ( is_singular( 'post' ) ) {
		return get_the_date();
	}
	return $string;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top