Title: White list posts
Last modified: September 26, 2016

---

# White list posts

 *  Resolved [dbostic](https://wordpress.org/support/users/dbostic/)
 * (@dbostic)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/white-list-posts/)
 * How can I white list posts, categories etc… Cant find info on how to do this.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/white-list-posts/#post-8222666)
 * Below are a few links you can find information on how to whitelist specific URLs
   or bypass the login based on certain criteria.
 * [https://wordpress.org/plugins/wp-force-login/faq/](https://wordpress.org/plugins/wp-force-login/faq/)
 * [https://github.com/kevinvess/wp-force-login/wiki/Frequently-Asked-Questions](https://github.com/kevinvess/wp-force-login/wiki/Frequently-Asked-Questions)
 * Also, checkout this article I wrote on LinkedIn; it discusses the new `v_forcelogin_bypass`
   filter and how in version 5.0 you can utilize the WordPress [Conditional Tags](http://codex.wordpress.org/Conditional_Tags).
 * [https://www.linkedin.com/pulse/new-features-force-login-50-kevin-vess](https://www.linkedin.com/pulse/new-features-force-login-50-kevin-vess)
 * Thanks for using Force Login!
 *  Thread Starter [dbostic](https://wordpress.org/support/users/dbostic/)
 * (@dbostic)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/white-list-posts/#post-8223367)
 * So that didn’t answer my question.
 *  $whitelist[] = site_url( ‘/2015/03/post-title/’ );
 * I don’t want to individually whitelist every post I make. Do you have a mass 
   whitelist code to allow all posts
 * Thanks
 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/white-list-posts/#post-8223457)
 * Actually, I did answer your question – those links show examples of code to whitelist
   or bypass the login for any circumstance.
 * You just need to adjust them to fit your specific needs.
 * > I don’t want to individually whitelist every post I make.
 * And you don’t have to, look at the LinkedIn article I suggested – it has an example
   of how you can whitelist a URL using the WordPress [Conditional Tags](https://codex.wordpress.org/Conditional_Tags).
 * You just need to replace the `is_home()` function with `is_single()` if you want
   to whitelist any post URL.
 * [https://gist.github.com/kevinvess/641aad7cbe5bb42a751ef8ba7fee74ce#file-wp-force-login-bypass-php-L8](https://gist.github.com/kevinvess/641aad7cbe5bb42a751ef8ba7fee74ce#file-wp-force-login-bypass-php-L8)
 * If you’re unfamiliar with the WordPress [Conditional Tags](https://codex.wordpress.org/Conditional_Tags)
   and you’re unsure of how to write your own unique conditions to whitelist URLs
   for your website – I suggest you hire a developer to help you craft the exact
   code you need.
 * Thanks for using Force Login!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘White list posts’ is closed to new replies.

 * ![](https://ps.w.org/wp-force-login/assets/icon.svg?rev=1904031)
 * [Force Login](https://wordpress.org/plugins/wp-force-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-force-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-force-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-force-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-force-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-force-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/white-list-posts/#post-8223457)
 * Status: resolved