Weird get_permalink() problem
-
I was just redoing my old personal login widget, and found this nice way of creating a logout url:
<?php echo wp_logout_url(get_permalink()) ?>
But there is a problem with this. Any time I click the URL generated by this code, it redirects me to
` bloginfo(‘url’)/?p=1 ‘
no matter where I am.
I want my users to get back the page they were looking at when they click this link, but also I want to keep this nice new and clean way!
Is it possible?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Weird get_permalink() problem’ is closed to new replies.