Title: Hide Private Posts When Using Widget
Last modified: April 8, 2021

---

# Hide Private Posts When Using Widget

 *  Resolved [AlexPR](https://wordpress.org/support/users/alexpr/)
 * (@alexpr)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/hide-private-posts-when-using-widget/)
 * I am using the **widget** to show other posts from the same category.
 * How can completely hide “`private`” posts even for logged-in users?
    I am using
 *     ```
       .lcp_private{
         display: none;
       } 
       ```
   
 * but this hides only the word “private” but not the whole post.
    I did not find
   a setting in the widget to hide “private” posts which would be cool to have or
   alternatively customize the template. I would appreciate any hints to customize
   the template to accomplish this. Also I saw that hidden private posts when using
   the `short code` does not work
 * Also I would like to **hide all posts from subcategories** and show only posts
   which directly relate to “`current category`” selected.
    -  This topic was modified 5 years, 2 months ago by [AlexPR](https://wordpress.org/support/users/alexpr/).
    -  This topic was modified 5 years, 2 months ago by [AlexPR](https://wordpress.org/support/users/alexpr/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/hide-private-posts-when-using-widget/#post-14302707)
 * The widget is no longer developed but remains in the plugin for backwards compatibility.
   We encourage all our users to use shortcodes. If you need it in a widget you 
   can use a shortcode in a text widget. If you need a friendly user interface, 
   the [GUI plugin](https://wordpress.org/plugins/gui-for-lcp/) is a much better
   solution, it will create shortcodes for you.
 * The feature to hide private posts from logged in users is not implemented. This
   feature request is now being [tracked on Github](https://github.com/picandocodigo/List-Category-Posts/issues/455).
 * > Also I would like to hide all posts from subcategories and show only posts 
   > which directly relate to “current category” selected.
 * The answer is in the [documentation](https://github.com/picandocodigo/List-Category-Posts/wiki/How-to-select-which-posts-to-show#other-ways-of-selecting-what-posts-to-show).
   The shortcode supports this feature.

Viewing 1 replies (of 1 total)

The topic ‘Hide Private Posts When Using Widget’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

## Tags

 * [hide](https://wordpress.org/support/topic-tag/hide/)
 * [private-posts](https://wordpress.org/support/topic-tag/private-posts/)

 * 1 reply
 * 2 participants
 * Last reply from: [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/hide-private-posts-when-using-widget/#post-14302707)
 * Status: resolved