WordPress.org

Support

Support » Plugins and Hacks » How to disable Headers from Custom Post Types?

How to disable Headers from Custom Post Types?

  • Faramarz
    Member

    @faramarz

    Hi,

    This is a great plugin, thanks for all your work. I want to use the custom header plugin only for my pages. I just created a custom post type and when I am adding a new post type, the custom headers show at the bottom of my editor. Basically, the custom headers show at the bottom of everything (posts, pages, post types). I don’t care about my posts because I am not using them but I do want to use my custom post types and I don’t want the custom header to show at the bottom of them when website users are creating content. How do I disable it on my post type pages?

    Thanks

    http://wordpress.org/plugins/wp-display-header/

Viewing 1 replies (of 1 total)
  • Plugin Author Konstantin Obenland
    Code Wizard

    @obenland

    Hi Faramarz,

    You will have to create a custom callback function for the 'add_meta_box' hook on priority 11 and then remove the meta box on post type editors where you don’t want it.

    Best,
    Konstantin

Viewing 1 replies (of 1 total)
  • The topic ‘How to disable Headers from Custom Post Types?’ is closed to new replies.