Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119838

cinematic on "Dynamic Headers with Custom Post Types"

$
0
0

Found a solution to add dynamic headers to custom post types.

In custom-header.php look around line 245 for

function myplugin_add_custom_box() {
	  if( function_exists( 'add_meta_box' )) {
			add_meta_box( 'myplugin_sectionid', 'Nicasio Dynamic Header', 'create_ch_form', 'page', 'advanced', 'high' );
			add_meta_box( 'myplugin_sectionid', 'Nicasio Dynamic Header', 'create_ch_form', 'post', 'advanced', 'high' );

add your custom post type below

function myplugin_add_custom_box() {
	  if( function_exists( 'add_meta_box' )) {
			add_meta_box( 'myplugin_sectionid', 'Nicasio Dynamic Header', 'create_ch_form', 'page', 'advanced', 'high' );
			add_meta_box( 'myplugin_sectionid', 'Nicasio Dynamic Header', 'create_ch_form', 'post', 'advanced', 'high' );
                        add_meta_box( 'myplugin_sectionid', 'Nicasio Dynamic Header', 'create_ch_form', 'my-custom-post-type-name', 'advanced', 'high' );

hope this helps.


Viewing all articles
Browse latest Browse all 119838

Trending Articles