skip to Main Content

Conditionally Show/Hide Blog Post Meta (date, comments, author, etc) Sections

The post meta sections are the

// For the blog posts use 'wpex_blog_single_meta_sections' instead
function my_wpex_meta_sections( $parts ) {

	// Your meta sections array ( you can move them around or remove some )
	// This is the default array you could also just use unset to remove anything you don't want
	$parts = array( 'date', 'author', 'categories', 'comments' );
	// Return sections
	return $parts;

add_filter( 'wpex_blog_entry_meta_sections', 'my_wpex_meta_sections' );
All PHP snippets should be added via child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)
Back To Top