Title: [Plugin: Exclude Pages] Exclude Spcific page when using wp_insert_post
Last modified: August 20, 2016

---

# [Plugin: Exclude Pages] Exclude Spcific page when using wp_insert_post

 *  [sagive](https://wordpress.org/support/users/sagive/)
 * (@sagive)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-exclude-spcific-page-when-using-wp_insert_post/)
 * i have some default pages created uppon theme activation.
 * i am using wp_insert_post & update_post_meta while creating
    the pages and would
   like to know how can i attach a “exclude” meaning uncheck the check box…
 * Can i update meta value? (Tried but no luck..)
 * Could you please help mate? 😉
    thanks a bunch for this plugin – i love it!
 * [http://wordpress.org/extend/plugins/exclude-pages/](http://wordpress.org/extend/plugins/exclude-pages/)

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

 *  [dxritchie@gmail.com](https://wordpress.org/support/users/dxritchiegmailcom/)
 * (@dxritchiegmailcom)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-exclude-spcific-page-when-using-wp_insert_post/#post-2866690)
 * Did this ever get resolved. I have a script that is parsing a text file and building
   pages based on # of ids in the text file. I need these pages to not show up under
   the parent page but they still need to be accessible from a user who is not logged
   in. So private pages will not work for me. Is there a way to make them hidden
   by default and or add this to my wp_insert_post & update_post_meta statements?
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-exclude-spcific-page-when-using-wp_insert_post/#post-2866700)
 * You’ll need to update the ‘ep_exclude_pages’ option in the options table to do
   this.
 * Have a look at the plugin’s code to see which functions are available. They are
   not contained in a class, so they are all available in the global namespace.
 * Oh.. and don’t forget to check whether a WP particular install actually has the
   exclude_pages plugin installed in your code!

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

The topic ‘[Plugin: Exclude Pages] Exclude Spcific page when using wp_insert_post’
is closed to new replies.

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

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [update_post_meta](https://wordpress.org/support/topic-tag/update_post_meta/)
 * [wp_insert_post](https://wordpress.org/support/topic-tag/wp_insert_post/)

 * 2 replies
 * 3 participants
 * Last reply from: [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-exclude-spcific-page-when-using-wp_insert_post/#post-2866700)
 * Status: not resolved