Support » Plugin: Ultimate Member – User Profile, User Registration, Login & Membership Plugin » restrict access does not work for custom template pages

  • Resolved karan1977

    (@karan1977)


    I have a page that is based on a custom page template. On this page, I have checked the ‘Restrict access to this content?’ checkbox and selected ‘logged in users’ for ‘Who can access this content?’.

    However the page is still accessible to users who are not logged in.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @karan1977

    Do you have a caching plugin installed on your site? Could you please try disabling the cache and see if the issue still occurs? Does this issue occur with a default WP theme such as 2020 or 2021?

    Regards,

    Thread Starter karan1977

    (@karan1977)

    Thanks for your reply Camba,

    I changed my theme to 2020 and your plugin works fine. Let me play around further to see if this solution works for me.

    Take care and regards,
    Karan

    Thread Starter karan1977

    (@karan1977)

    UPDATE:

    The plugin worked as long as the restricted page did not have a custom template.
    As soon as I changed it to a custom template, the restrict access to logged in users stopped working.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @karan1977

    How do you add the template? Is it a theme template? or are you using a Page Builder?

    Regards,

    Thread Starter karan1977

    (@karan1977)

    I have a theme template Camba

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @karan1977

    Sorry for the late response. Just checking if you’re still having issues? Does the custom theme template add in the theme itself or child theme?

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @karan1977

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂

    Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘restrict access does not work for custom template pages’ is closed to new replies.