This topic has 7 replies, 2 voices, and was last updated 6 years by Laura.

  • Author
  • #202191
     hamsar
    Participant

    Hi again,

    I m using a snippet which blogs non members to access certain pages. However its also blocking blog posts. I did allow the blog page however its not accessible to non members. Thanks

    Thanks

    AB

    #202192
     hamsar
    Participant
    This reply has been set as private.
    #202200
     hamsar
    Participant
    This reply has been set as private.
    #202225
     Laura
    Moderator

    Hello, it depends, if your plugin also blocks them to be indexed you won’t be able to index them.
    Have you tried paid membership pro? It let’s you individually block posts for certain user levels but they are indexed

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #202230
     hamsar
    Participant
    This reply has been set as private.
    #202343
     Laura
    Moderator

    Hello, replace it with this and let me know if it works

    COPY CODE
    
    /* Restrict guests only to those pages.*/
    function sq7R_kleo_restrictions_guest_restrict() {
    $allowedpages= array(‘register’,’activate’,’Home’,’reasons-to-join’,’privacy-policy’,’about-us’,’terms-of-service’,’contact’);
    if( !is_user_logged_in() && !is_page($allowedpages)) {
    wp_redirect(site_url( ‘/register’) );
    }
    }
    add_action(‘template_redirect’, ‘sq7R_kleo_restrictions_guest_restrict’);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #202368
     hamsar
    Participant
    This reply has been set as private.
    #202424
     Laura
    Moderator

    Hello, if you block blogs they will be redirected but you don’t want to block blogs so they are able to see it and not be redirected. It’s one thing or the other

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?