I have created a custom login/logout widget on the sidebar. However when a logged in user clicks "logout" it gives the following error: WordPress Failure Notice.You are attempting to log out of
Do you really want to log out?
The actual code for the logout link I am using is:
<a href="http://www.websitename/wp-login.php?action=logout" alt="logout" title="Logout">Logout</a>
I have also tried using this code:
<a href="<?php echo wp_logout_url(); ?>" title="Logout">Logout</a>
But then I get the following error:
Error 404 - Page not found!
The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.
The site of concern is http://www.aintreelane.co.za
Would anyone be able to assist with this?
Is this a theme problem or something I am doing wrong?
Thanks in advance!