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 * */ 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 a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

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

Let's Talk