Skip to:
Content
Pages
Categories
Search
Top
Bottom

can not set activity-feed as home page without causing redirect loop


  • ngoegan
    Participant

    @ngoegan

    I’m running WP 4.9.8 with the Twenty Twelve theme on my site http://www.charlottemasoneducation.org
    All plugins are updated.

    Plugins:

    Akismet Anti-Spam
    bbPress Version 4.0.8
    BP Registration Options Version 2.5.14
    BP xProfile Location Version 4.3.5
    BuddyPress Version 1.6
    BuddyPress Activity Plus Version 3.1.0
    BuddyPress Activity ShortCode Version 1.6.4
    BuddyPress Edit Activity Version 1.1.5
    BuddyPress Group Email Subscription Version 1.0.9
    BuddyPress Groups Extras Version 3.8.2
    InfiniteWP – Client Version 0.3.0
    Remove Dashboard Access Version 3.4.1
    The Events Calendar Version 1.0.2
    W3 Total Cache Version 1.4.2
    Widget Logic Version 0.9.7
    Wordfence Security Version 5.9.0
    WP SMTP Version 7.1.11 | By Wordfence | View details

    When I go to APPEARANCE > CUSTOMIZE > HOMEPAGE SETTINGS and choose Sitewide Activity as the home page, it causes a redirect loop on the homepage. While I’m logged in as admin, I can see the Sitewide Activity page by clicking on the home page, but anyone who is logged out, gets a “too many redirects” error.

    When I change the settings to REGISTER as the home page, logged in members are redirected to the MEMBER page after logging in.

    I have tried adding a redirect plugin and that breaks the site. I would really like members to land on the Sitewide Activity feed once they log in.

    Any help would be greatly appreciated. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

  • ngoegan
    Participant

    @ngoegan

    I’m getting a redirect loop error for logged out users. Can anyone help?


    Prashant Singh
    Participant

    @prashantvatsh

    Hi,

    Please try this snippet:

    if( !function_exists('ps_login_redirect') ) {
        function ps_login_redirect($redirect_to, $request, $user) {
           $redirect_to = 'your_sitewide_activity_page_url';
           return $redirect_to;
        }
        add_filter('login_redirect','ps_login_redirect',10,3);
    }

    Hopefully, this will help you.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar