• Resolved AlexPR

    (@alexpr)


    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 3 years, 7 months ago by AlexPR.
    • This topic was modified 3 years, 7 months ago by AlexPR.
Viewing 1 replies (of 1 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    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 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.

    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. The shortcode supports this feature.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide Private Posts When Using Widget’ is closed to new replies.