WordPress.org

Support

Support » Plugins and Hacks » I would like to block certain pages but they are lot to do one on one. HELP

I would like to block certain pages but they are lot to do one on one. HELP

  • Hi:

    I have 500 pages , that i have to block, i cant use Block All Pages by default because there are a lot of pages that are visible, also i dont want that my pages/post are bloked by default when i creating it.

    Is there any way to block all entries (page/post) in the database but does not force you to that new page / post are blocked by default?

    i have a look in the database but the wp_post dont have a field where you can put No or Yes for example.

    http://wordpress.org/extend/plugins/wp-members/

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    @cbutlerjr

    Any individual post/page can be set to override the default setting by using a post custom field. Custom fields are stored in wp_postmeta.

    If you have posts or pages blocked by default, unblocking with a custom field is a custom field name (meta_key) of ‘unblock’ with a value (meta_value) of either ‘true’ or 1.

    If you have posts or pages not be blocked by default, blocking with a custom field is a custom field name (meta_key) of ‘block’ with a value (meta_value) of either ‘true’ or 1.

    Note that doing this in bulk directly in the database could be just as messy as doing them individually. I would suggest determining what you have more of – blocked or unblocked content and then determine your default setting based on that. (Also, there is a meta box in the post and page editors for doing this without having to set it as a custom field directly.)

Viewing 1 replies (of 1 total)
  • The topic ‘I would like to block certain pages but they are lot to do one on one. HELP’ is closed to new replies.