[Help] Wordpress redirect

Tanckom

Power Member
Joined
May 4, 2014
Messages
593
Reaction score
184
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;
}
 
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
 
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.
 
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
 
Back
Top