WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Headers
[resolved] Dynamic Headers with Custom Post Types (7 posts)

  1. wombii
    Member
    Posted 1 year ago #

    Hi, is there a way to handle the dynamic headers plugin in custom post types. would be really great? perhaps per adding code in a file ?

    thx and regards
    wombii

    http://wordpress.org/extend/plugins/dynamic-headers/

  2. JHouse
    Member
    Posted 1 year ago #

    I agree, this would be very useful.

  3. cinematic
    Member
    Posted 1 year ago #

    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.

  4. wombii
    Member
    Posted 1 year ago #

    Hi cinematic, Many Thanks !!!!!!

  5. wombii
    Member
    Posted 1 year ago #

    your solution is working very well :-) cheers wombii

  6. Kocuru
    Member
    Posted 1 year ago #

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

  7. katiemashe
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic