• Resolved dshaub01

    (@dshaub01)


    Great Plugin. Thanks for developing.

    Is there a way to define which page shows up after a user logs in?

    I am using this to restrict access to my entire website and would like the users to login and be directed to the homepage.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rocket Burn

    (@rapaluwe)

    Hi @dshaub01,

    Try this:

    1. Custom Landing Page >> WordPress Login >> Homepage
    – I think better to use the short code of Restrict User Access to Homepage template:

    [restrict role="editor" page="1"]
    This content can only be seen by editors.
    Other users will see content from Page 1.
    [/restrict]

    or

    2. WordPress Login >> Homepage
    – Add this to your header.php

    if ( !is_user_logged_in() ) {
       auth_redirect();
    }
    Plugin Author Joachim Jensen

    (@intoxstudio)

    @rapaluwe

    Thanks for helping out! I did not know about the auth_redirect method, but it looks like it will redirect to /wp-login.php?

    @dshaub01

    If you’re using the [login-form] shortcode, you can add the parameter “redirect” like this:
    [login-form redirect=url]

    By default, the user should be redirected back to the page he came from.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Defining Landing Page’ is closed to new replies.