znomorph
Member
Posted 1 year ago #
Hey all,
So this is my first crack at wordpress, and I got it up and running fairly smoothly. I picked a theme I liked (http://www.cellarheat.com/) and all was well until I tried to log out from within the theme. I get the Forbidden Access server error and I don't get logged out. Any clue what might be happening? Sorry for posting this after all the 403 posts that I found, but no one seems to have an answer(and again, sorry if I missed the answer). Thanks in advance!
-Chris
znomorph
Member
Posted 1 year ago #
so I fixed it, but I'm not really sure why what I did fixed things. I replaced this:
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a>
with this:
<a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account'); ?>"><?php _e('Log out »'); ?></a>
I don't know php all that well...is there anyone that can tell me why this fixed things? Thanks!