Hi michel.b,
I had tested this issue and I can see that there are some issues with the WP default ‘Recent Posts’ widget. When it is used on the page which displays your posts in reverse order it works fine according to my tests. Only when you select a page/post it starts displaying recent posts oddly (some private posts are missing). I’ll look into this issue and will try to fix it with a later release.
With respect the issues with the menu I couldn’t reproduce any such issues. I think the menu works fine (it displays the private pages and posts to those users who are added to the proper Reading Groups), maybe it depends on which theme you use. I tested with Twenty Fourteen and MH Magazine lite and menu worked just fine for me. Maybe I am missing some important detail regarding your configuration, so if you can think of anything please share with me. Until I can reproduce the issue you are facing with it is very unlikely I can fix it.
Best Regards,
Janos
Thank you for your answer.
The theme I am using is MAKE.
The problem is with the widgets :
I have a category widget in the left sidebar and one of my categories, with 100% private posts, does not appear in this widget no matter the user permissions, even the admin. If I add one public post, it appears in the category widget.
The same is true for the widget monthly archives : if for a given month I have only private posts it does not appear in the list, but if I add one public post then that month appears.
If you can try this theme MAKE with these widgets in the right sidebar maybe you can reproduce the problem. I have fond temporary solutions :
For the category widget I use the following trick : I created a public post with a publish date year 1900 that says “no more post” and I gave it all the categories. That way all my categories appear in the menu.
For the date widget I replaced it with a template page which list the posts month by month, using your function “wp_jv_prg_user_can_see_a_post(get_current_user_id()”
to filter the posts and it works : a post appears on the list only if the user has permission.
Hi michel.b,
I misunderstood your issue at first and I have found a completely different one with ‘Recent Posts’ widget which I commented above. Now that I had a second look at your issue I see what is the problem and I have found a solution for this. I tested the fix with the MAKE theme (which you use) as well and it works fine.
The fix for your original issue will be released in a few days with v2.0, so stay tuned. I allow a bit more time for myself to find a solution for the other issue with ‘Recent Posts’ widget and might be able to add some more fixes/features to the release.
Hi Janos,
I tested your new version : I could not make it work with the option “dropdown menu” of the default categories widget. It does not display categories with private posts only. When I choose the standard display of the widget, it works fine. Could you please try to reproduce this and let me know. Thank you.
Do you have plans to fix the same problem with the tags ? with the dates ?
Hi michel.b,
I’m glad it works fine with the standard display for you as well.
Yes, you are correct. I haven’t tested it with the dropdown menu option. That is something to do for a future release. I have plans to fix the same issue with tags as well. As the winter approaches fast it might bring me more time as well to spend on plugin development.
Regards,
Janos