Title: Exclude the plugin in some posts
Last modified: February 19, 2018

---

# Exclude the plugin in some posts

 *  Resolved [gameconcierge](https://wordpress.org/support/users/gameconcierge/)
 * (@gameconcierge)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/exclude-the-plugin-in-some-posts/)
 * Hi [@deb255](https://wordpress.org/support/users/deb255/),
 * Firstly thank you very much for the plugin.
 * I want to deactivate the plugin only on post no 5014.
 * Could you help me adding the right code to the right place?
 * I tried the following on line 204 of ihaf.php, but it didn’t work…
    global $post;
   if( 5014 == $post->ID ) return ;
 * Thank you

Viewing 1 replies (of 1 total)

 *  [Dave](https://wordpress.org/support/users/deb255/)
 * (@deb255)
 * [8 years ago](https://wordpress.org/support/topic/exclude-the-plugin-in-some-posts/#post-10372921)
 * You can use one of the three boolean filters: disable_ihaf, disable_ihaf_header,
   disable_ihaf_footer which are available in the latest version of the plugin (
   1.4.3) onwards

Viewing 1 replies (of 1 total)

The topic ‘Exclude the plugin in some posts’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dave](https://wordpress.org/support/users/deb255/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/exclude-the-plugin-in-some-posts/#post-10372921)
 * Status: resolved