Title: Dynamic Headers with Custom Post Types
Last modified: August 20, 2016

---

# Dynamic Headers with Custom Post Types

 *  Resolved [wombii](https://wordpress.org/support/users/wombii/)
 * (@wombii)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/)
 * 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/](http://wordpress.org/extend/plugins/dynamic-headers/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [JHouse](https://wordpress.org/support/users/jhouse/)
 * (@jhouse)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/#post-3007545)
 * I agree, this would be very useful.
 *  [cinematic](https://wordpress.org/support/users/cinematic/)
 * (@cinematic)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/#post-3007549)
 * 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](https://wordpress.org/support/users/wombii/)
 * (@wombii)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/#post-3007550)
 * Hi cinematic, Many Thanks !!!!!!
 *  Thread Starter [wombii](https://wordpress.org/support/users/wombii/)
 * (@wombii)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/#post-3007551)
 * your solution is working very well 🙂 cheers wombii
 *  [Kocuru](https://wordpress.org/support/users/kocuru/)
 * (@kocuru)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/#post-3007563)
 * Hi, is there a possibility to add this function to categories too?
 *  [katiemashe](https://wordpress.org/support/users/katiemashe/)
 * (@katiemashe)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/#post-3007575)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/dynamic-headers.svg)
 * [Dynamic Headers](https://wordpress.org/plugins/dynamic-headers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-headers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-headers/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-headers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-headers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-headers/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [katiemashe](https://wordpress.org/support/users/katiemashe/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/dynamic-headers-with-custom-post-types/#post-3007575)
 * Status: resolved