• Resolved Omtesla

    (@itesla)


    Hello
    I have set website to protect everything from UM settings, but unprotect specific pages per each own settings, for some reason the Uncategorized which is my Blog category still is protected no matter if I set the category to be viewable by Everyone, it still is not showing to everyone.
    Also the Uncategorized is my Posts Page in WP settings, but same I went ant set view to Everyone for this page and it is still protected.

    Then I unprotected all website from UM settings and begin to protect pages and categories per each own settings, but now my Activity page of BuddyPress is showing for Everyone no matter if I protect it from it’s own setting.

    What could be wrong?
    Thank you for this great plugin.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @itesla

    In your first option (when all site is protected). Your main page – is a blog page?

    Thank you.

    Thread Starter Omtesla

    (@itesla)

    Not sure what you mean?
    The home page is not Blog page, the Blog page was set to posts page in WP settings.
    In main menu i was adding the link of the Blog page, I changed the link to the Category (Blog) itself and now it is not blocked as I wanted.

    There seems some issue with Blog page when is set to posts page in WP settings, I wanted to make it public so viewers can see what posts are new but can’t access them.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @itesla

    I checked my local site and i haven’t this issue. Could you send me screenshot of your settings?

    Thank you.

    Thread Starter Omtesla

    (@itesla)

    Hello
    Which settings to send exactly?

    Plugin Support andrewshu

    (@andrewshu)

    Hello @itesla

    All settings with restriction and website reading settings.

    Thank you.

    Thread Starter Omtesla

    (@itesla)

    This settings?

    UM Settings

    Screenshot-2989

    WP Settings

    Screenshot-2990
    • This reply was modified 1 year, 10 months ago by Omtesla. Reason: fixed links
    • This reply was modified 1 year, 10 months ago by Omtesla.
    Plugin Support andrewshu

    (@andrewshu)

    HI @itesla

    Please send me restriction settings of Uncategorized category also.

    Thank you.

    Thread Starter Omtesla

    (@itesla)

    It was set like this, now I m not allowing it to view for non logged in users.

    • This reply was modified 1 year, 10 months ago by Omtesla.
    Plugin Support andrewshu

    (@andrewshu)

    Hi @itesla

    try to visit not post page but category page (please see a screenshot – https://we.tl/t-8AbBAU5oXV).

    Thank you.

    Thread Starter Omtesla

    (@itesla)

    Already did that before you first reply to this topic, you can see my second reply, you did not tell what is the root problem of this issue, it is a bug or it meant to be like this.

    Thanks for trying for help.

    P.s. I not see any screenshot in your link but a website.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @itesla

    I send you link to wetransfer – https://we.tl/t-8AbBAU5oXV.

    I checked my site with your settings and I haven’t this issue when I visit not blog page but category page (like on the screenshot).

    Thank you.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @itesla

    I think I understand you. Your blog page restriction not working correctly. Sorry for the misunderstanding. I need time to research.

    Thread Starter Omtesla

    (@itesla)

    It works for category, but it does not work to not restrict the blog page when it is set to posts page in WP settings, this page is useful because it is like an activity page to show new posts. I wanted to make it visible to non members so they will see what is new but not be able to view the blog post, they will need to register to view posts.
    Simple as that.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @itesla

    Try to add this code (to your functions.php file in your child theme or with PHP code snippet plugin):

    add_action( 'template_redirect', 'um_change_restrict', 10 );
    function um_change_restrict() {
        global $wp_query;
    	if ( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) {
    		remove_action( 'um_access_check_global_settings', array( UM()->access(), 'um_access_check_global_settings' ) );
    	}
    }

    Thank you.

    Thread Starter Omtesla

    (@itesla)

    I have add the code and it worked, thank you!

    Maybe there is a bug of why this page is remaining protected.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Uncategorized Category Is Always Protected’ is closed to new replies.