Viewing 6 replies - 1 through 6 (of 6 total)
  • I agree, this would be very useful.

    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.

    Thread Starter wombii

    (@wombii)

    Hi cinematic, Many Thanks !!!!!!

    Thread Starter wombii

    (@wombii)

    your solution is working very well ?? cheers wombii

    Hi, is there a possibility to add this function to categories too?

    katiemashe

    (@katiemashe)

    I am having trouble with dynamic header coding in my company website. I installed the updated theme and lost all the header photos for each page. How do I re-activate the dynamic headers in the twenty eleven 1.5 theme?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Dynamic Headers with Custom Post Types’ is closed to new replies.