• Hi,

    I’m actually testing this plugin and I create a private post using Post Level Restriction and Custom Capabilities and effectively it is only available for restricted member. But in my web site home page I have a calendar with my recent posts. If a user (not register) click the private post link there is an error. It is normal because he doesn’t have access to the private post.

    Is it possible to hide private post from calendar, category list and archives? Or at least redirect user to Membership Options page?

    Regards,

    André

    https://www.ads-software.com/plugins/s2member/

Viewing 5 replies - 1 through 5 (of 5 total)
  • If a user (not register) click the private post link there is an error.

    What sort of error? What actually happens?

    Thread Starter adcdao

    (@adcdao)

    Page not found error, but when the user is login everything works well. What I want, it if the user is not logged, the post is not visible (don’t show in calendar, neither in categories and archives. I can set the post private but in this case even the logged user can’t see the post.

    Regards,

    André.

    Putting a list of posts on your home page is bound to be problematic if one or more of those posts is protected because the home page cannot be protected. You are therefore mixing up two requirements. You could, perhaps, achieve a better result by unprotecting the post but protecting its content using s2member shortcodes.

    However, I wonder if something else is also going on here. What happens if you try to access the protected post directly (i.e. by entering the relevant URL) when logged out? Do you still get the page not found error, or do you get directed to the MOP?

    Thread Starter adcdao

    (@adcdao)

    To answer your question, the link is correctly redirected to MOP. But I solve my problem by replacing the Calendar and Categories default widget by two plugin: Archives Calendar Widget and AVH Extended Calendar Widget. With these widget I can choose which category post to show. So I created a public category. With these widgets only public content is shown to not logged in user. I was looking to similar plugin for Archives but I didn’t find it, so I remove Archive widget from my sidebar.

    Next thing to do is showing a list of private post on the member Welcom page. I found another plugin W4 Post List, with this plugin I think it is possible to filter post by meta ( meta_query ). There is another link I found about that: https://www.s2member.com/forums/topic/list-of-custom-capabilities-postspages/. But I don’t know exactly how to do that. I create a support ticket to W4 Post list.

    Regards,

    André

    Thread Starter adcdao

    (@adcdao)

    The second plugin is AVH Extended Categories Widgets.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide private post from calendar’ is closed to new replies.