WordPress.org

Ready to get started?Download WordPress

Forums

Member Access
No error but redirect not working in WP 3.6 (5 posts)

  1. gerital
    Member
    Posted 7 months ago #

    In my case I don't get any errors and plugin redirects accesses to member pages correctly to login. Login URL has REQUEST variable added and looks like http://site.com/wp-login.php?redirect_to=http%3A%2F%2Fsite.com%2Fmembersite%2F. But after successful login it doesn't redirect to named site but goes to front page.

    So actually it doesn't seem to be an error of this plugin and looks more like a WP problem.

    http://wordpress.org/plugins/member-access/

  2. feritsaki
    Member
    Posted 6 months ago #

    yes i have same issue here. i am trying to make a site that only seen by members. for that i am using the wordpress login panel as login page. and i imported my member list from excel to user table in wp. for that members has no role.

    when a member try to login site like http://www.site.com he is seeing the wp login panel. but after making the correct login he is not directing to main page but wp directing him to admin panel. i want him to direct to page which he wanna see at the begining.

  3. jerome33
    Member
    Posted 5 months ago #

    I use this plugin with wp3.7.
    You can redirect the user to the public page editing the file functions.php in your theme.
    add:

    add_filter("login_redirect", "gkp_subscriber_login_redirect", 10, 3);
        function gkp_subscriber_login_redirect($redirect_to, $request, $user) {
    
        if(is_array($user->roles))
        if(in_array('administrator', $user->roles)) return site_url('/wp-admin/');
    
        return home_url();
        }

    Pay attention to the kind of the user you are when you test; admin will allways be redirected to the admin page and regular users will be redirected to the public page.

  4. Shonu
    Member
    Posted 5 months ago #

    Same issue. Please re-instate functionality missing since at least 3.5.2. Even my 3.7.1 does not redirect anymore to the originally intended page. I do not want to start adding filters. This is suppose to be done by plugin here.

    thanks

  5. Shonu
    Member
    Posted 5 months ago #

    My site has stopped working for anonymous users hitting homepage!
    I am looking for an other plugin

Reply

You must log in to post.

About this Plugin

About this Topic