Title: exclude plugin on posts &amp; pages
Last modified: December 16, 2016

---

# exclude plugin on posts & pages

 *  [ubonline](https://wordpress.org/support/users/ubonline/)
 * (@ubonline)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/exclude-plugin-on-posts-pages/)
 * Hi, I have a wordpress site, and using the shortcode below in the header to insert
   a plugin:
 * <?php echo do_shortcode( ‘[ois skin=”4″]’ ); ?>
 * I want to exclude the plugin on certain pages & posts. The developer provided
   me with the following code, with the array being the posts/pages to exclude. 
   But it isn’t working, and adds the plugin instead of removing it.
 * <?php
    //IDs of the types where this Skin will not appear $not_allowed = array(
   1,2,3); if (!in_array(get_post_type(), $not_allowed )) echo do_shortcode( ‘[ois
   skin=”4″]’ ); ?>
 * Any suggestions?

 The topic ‘exclude plugin on posts & pages’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [ubonline](https://wordpress.org/support/users/ubonline/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/exclude-plugin-on-posts-pages/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
