Title: Add option for private posts
Last modified: August 21, 2016

---

# Add option for private posts

 *  ResolvedPlugin Contributor [Roland](https://wordpress.org/support/users/support00/)
 * (@support00)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/add-option-for-private-posts/)
 * By default the widget only displays posts with a post_status of
    ‘publish’. I’ve
   added a checkbox to the options panel to enable the display of posts with a post_status
   of ‘private’ too.
 * Could this be added to the plugin for a next update? The code is available here:
   [https://github.com/rolandp/intelliwidget-per-page-featured-posts-and-menus](https://github.com/rolandp/intelliwidget-per-page-featured-posts-and-menus)
 * [https://wordpress.org/plugins/intelliwidget-per-page-featured-posts-and-menus/](https://wordpress.org/plugins/intelliwidget-per-page-featured-posts-and-menus/)

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

 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/add-option-for-private-posts/#post-4777718)
 * Roland,
 * Thank you for the suggestion.
 * However, isn’t the purpose of private posts to make them inaccessible to public
   users?
 * We would need to discuss the impact of this option in detail before committing
   it.
 *  Plugin Contributor [Roland](https://wordpress.org/support/users/support00/)
 * (@support00)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/add-option-for-private-posts/#post-4777750)
 * Adding the ability to show private posts enables the use of the widget on posts
   or pages that are private themselves. A client of mine ran into this limitation
   when setting up some linked private posts and this solved it cleanly. Because
   it’s being used on a post thats private itself the posts shown in the widget 
   are never open for non-logged in users.
 * The way I implemented the ability is according to the design of the plugin and
   purely optional for the user.
 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/add-option-for-private-posts/#post-4777766)
 * Ok, I am merging it into the current dev branch. If it looks good I’ll add you
   as a contributor and it will go into the next tagged release. I have to make 
   sure it doesn’t create a security problem, but it looks fine so far.
 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/add-option-for-private-posts/#post-4777767)
 * BTW the branch is ‘one-metabox’ I need to clean up the conflicts.
 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/add-option-for-private-posts/#post-4777784)
 * Roland, your feature is live in v.2.0.5. I made a few modifications (mainly `
   current_user_can('read_private_posts')` tests and some coding style preferences.
 * Thanks for the help. Keep in touch!

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

The topic ‘Add option for private posts’ is closed to new replies.

 * ![](https://ps.w.org/intelliwidget-per-page-featured-posts-and-menus/assets/icon-
   128x128.png?rev=1105289)
 * [IntelliWidget Per Page Custom Menus and Dynamic Content](https://wordpress.org/plugins/intelliwidget-per-page-featured-posts-and-menus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/intelliwidget-per-page-featured-posts-and-menus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/intelliwidget-per-page-featured-posts-and-menus/)
 * [Active Topics](https://wordpress.org/support/plugin/intelliwidget-per-page-featured-posts-and-menus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/intelliwidget-per-page-featured-posts-and-menus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/intelliwidget-per-page-featured-posts-and-menus/reviews/)

## Tags

 * [private-posts](https://wordpress.org/support/topic-tag/private-posts/)
 * [Pull Request](https://wordpress.org/support/topic-tag/pull-request/)

 * 5 replies
 * 2 participants
 * Last reply from: [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/add-option-for-private-posts/#post-4777784)
 * Status: resolved