Viewing 1 replies (of 1 total)
  • Thread Starter daisyberly123

    (@daisyberly123)

    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_meta_box( ‘myplugin_sectionid’, ‘Nicasio Dynamic Header’, ‘create_ch_form’, ‘my-custom-post-type-name’, ‘advanced’, ‘high’ );//add your custom post type here

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic header in custom post type’ is closed to new replies.