Hi onyx808,
Thanks for working on this problem. I tried adding your code and changed “page-to-exclude-slug” to a page slug and then tried a page id and it still was taking me to the password screen. I tried it with a few different pages and none of them were excluded. Can you please check the code again? Does it still work?
Thanks