Title: Plugin does not respect &quot;Private&quot; status
Last modified: August 31, 2016

---

# Plugin does not respect "Private" status

 *  [digger149](https://wordpress.org/support/users/digger149/)
 * (@digger149)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-respect-private-status/)
 * Hi there
 * I tried your plugin to show “Private” posts to only logged-in users. It selects
   and lists the posts correctly, but it still lists the posts when users are not
   logged in. Clicking the link then goes to a page not found error
 * [https://wordpress.org/plugins/query-wrangler/](https://wordpress.org/plugins/query-wrangler/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jonathan Daggerhart](https://wordpress.org/support/users/daggerhart/)
 * (@daggerhart)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-respect-private-status/#post-7055100)
 * Hi digger149,
 * I found this interesting in the WP_Query documentation about post_status:
 * > post_status (string / array) – use post status. Retrieves posts by Post Status.
   > Default value is ‘publish’, but if the user is logged in, ‘private’ is added.
 * [https://codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters](https://codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters)
 * Unfortunately at the moment query wrangler requires you set the post status. 
   I’ll fix this by providing a “Default” option in the next release.
 * Thanks,
    Jonathan

Viewing 1 replies (of 1 total)

The topic ‘Plugin does not respect "Private" status’ is closed to new replies.

 * ![](https://ps.w.org/query-wrangler/assets/icon-256x256.jpg?rev=3279076)
 * [Query Wrangler](https://wordpress.org/plugins/query-wrangler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-wrangler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-wrangler/)
 * [Active Topics](https://wordpress.org/support/plugin/query-wrangler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-wrangler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-wrangler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jonathan Daggerhart](https://wordpress.org/support/users/daggerhart/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-respect-private-status/#post-7055100)
 * Status: not resolved