Tanckom
Power Member
- May 4, 2014
- 593
- 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;
}
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;
}