WordPress Access Areas
[resolved] Login page when no access (6 posts)

  1. nirgalo
    Posted 2 years ago #

    Hi, I would need to display a login page when user tries to reach an access protected page but is not yet logged in, how can I do this? Thanks.


  2. belindajohnstone
    Posted 2 years ago #

    Hi I have a question re same topic... I get a 404 when not logged in... how do I make it a login page?


  3. podpirate
    Plugin Author

    Posted 2 years ago #

    showing a 404 is the plugins default behaviour. (Besides: Same as private posts in WordPress.) I am aware of the issue, but it would require some profound code refactoring. Currently I am struggeling with bugfixes and UI-improvements, so please do not expect a solution to come too soon.
    Cheers, j.

  4. belindajohnstone
    Posted 2 years ago #

    Thanks for the response. Good luck.

  5. DigiDocs
    Posted 2 years ago #

    I have a solution for that.
    You could add a 404.php page (or modify existing) to the theme templates.

    In that file, either redirect to wp default login page or to your url to user login page or you could add a shortcode for a plugin login form.

  6. nirgalo
    Posted 2 years ago #

    @DigiDocs: right, but after user logged in, we would need to go to the page the user originally intended to go to. So there is some coding involved there with a redirection.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Access Areas
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic