Hello everyone,
I am trying to put - in the footer of a theme - a link to the user's admin page. And I want that link to be correct for each user.
This is the code I'm using:
<a href="<?php echo $tmp_user_url; ?>wp-admin/" title="administration">administration</a>
It should lead to:
http://blog1.example.com/wp-admin/
But it works only when a user clicks on it from the home page of his blog. But if he opens *any* other page like the About page, that same link changes to this:
http://blog1.example.com/about/wp-admin/
And it redirects him to the login page!!
Am I using a wrong code for the link in the footer? If so, then what is the right one?
I would appreciate your help