Need Login/Logout link in footer

Hello,

I am able to get the login/logout link to display in the navigation in the header and in the footer.. but I just need to appear in the footer..

here's the code I am using..

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 .= '

  • '. $loginoutlink .'
  • '; return $items; }

    please help