WordPress.org

Ready to get started?Download WordPress

Forums

Exclude Pages
Exclude Spcific page when using wp_insert_post (3 posts)

  1. sagive
    Member
    Posted 2 years ago #

    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/

  2. dxritchie@gmail.com
    Member
    Posted 1 year ago #

    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?

  3. jrf
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic