WordPress.org

Ready to get started?Download WordPress

Forums

WP Display Header
How to disable Headers from Custom Post Types? (2 posts)

  1. Faramarz
    Member
    Posted 11 months ago #

    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/

  2. Konstantin Obenland
    Theme Wrangler
    Plugin Author

    Posted 11 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic