WP-Members: Membership Framework
I would like to block certain pages but they are lot to do one on one. HELP (2 posts)

  1. alfredo49
    Posted 3 years ago #


    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.


  2. Chad Butler
    Plugin Author

    Posted 3 years ago #

    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.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.