2 comments

  1. if(!current_user_can('administrator')) {
        wp_redirect( wp_login_url() );
    }
    

    This will redirect non-admins to login URL. Of course, logged in non-admins will be a bit confused. You’ll want to run this before get_header()

  2. Alternatively you can set a page as PRIVATE and give a password for it. You get this option when you “Quick Edit” a page.

Comments are closed.