Genesis Title Toggle on all post types

The Genesis Title Toggle only applies to the ‘page’ post type by default, but you can modify this with the be_title_toggle_post_types filter. The code snippet below will add Genesis Title Toggle to all post types.

/**
 * Title Toggle for all post tpyes 
 * @author Bill Erickson 
 * @see http://www.billerickson.net/code/genesis-title-toggle-on-all-post-types
 *
 */
function ea_title_toggle_all_post_types( $post_types ) {
	$post_types = get_post_types(
		array(
			'public'   => true,
			'_builtin' => false,
		),
		'names'
	);
	$post_types[] = 'page';
	$post_types[] = 'post';
	return $post_types;
}
add_filter( 'be_title_toggle_post_types', 'ea_title_toggle_all_post_types' );

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk