[Resolved] Logout to redirect to home page.
I’m trying to add a text logout button to a page that will either redirect to the homepage or the page same page instead of going to the wordpress login page.
Spent about an hour reading through articles to no resolve.
I’ve tried this: http://codex.wordpress.org/Function_Reference/wp_logout_url and it simply won’t display anything on the page.
The only way I’ve managed to get the logout working is by
<a href="http://www.url.com/wp-login.php?action=logout">Logout</a>and that redirects to the wordpress login page which I don’t want.
- The topic ‘[Resolved] Logout to redirect to home page.’ is closed to new replies.