1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Help] Wordpress redirect

Discussion in 'Web Design' started by Tanckom, Jun 13, 2014.

  1. Tanckom

    Tanckom Power Member

    Joined:
    May 4, 2014
    Messages:
    578
    Likes Received:
    174
    Location:
    ☯ Karma ☯
    Home Page:
    Hello, i need help with my wordpress webpage, when i want to visit the website, it keeps me redirecting to the login site:
    mysiteurl.com/wp-login.php?redirect_to=/
    How do i change this? I looked everywhere on the net, but couldn't find any good answer, and this started happening after i wrote in the Design>Edit>functions.php this code to enable a Login/ logout site below the function et_setup_theme() { line this here:

    add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
    function add_login_logout_link($items, $args) {
    ob_start();
    wp_loginout('index.php');
    $loginoutlink = ob_get_contents();
    ob_end_clean();
    $items .= '<li>'. $loginoutlink .'</li>';
    return $items;
    }
     
  2. Tanckom

    Tanckom Power Member

    Joined:
    May 4, 2014
    Messages:
    578
    Likes Received:
    174
    Location:
    ☯ Karma ☯
    Home Page:
    I figured now out, after disable some plugins that it was the private buddypress plugin that redirected me there, but i still want to see my website with that tool enabled
     
  3. ivantk

    ivantk Registered Member

    Joined:
    Feb 21, 2014
    Messages:
    55
    Likes Received:
    14
    Try Vanilla forum. We have successfully iterated it with our wordpress sites.

    Will it work if you remove your custom code? I don't see any problem with your code.
     
  4. Tanckom

    Tanckom Power Member

    Joined:
    May 4, 2014
    Messages:
    578
    Likes Received:
    174
    Location:
    ☯ Karma ☯
    Home Page:
    Me neither, but i ended up destryoing my website &#55357;&#56836; but doesn't matter, it was my first website with wordpress, and i builded a new and clean website with it, and I'm still going with bbpress, and to secure the pages I used the private pages plugin, thanks anyway