I want to make a link that goes to wp-login.php for whatever domain I'm at now. Something like:
<a href="http://<script>document.write(document.domain);</script>/wp-login.php">Login</a>
But I don't know how to write / format that properly.
|
Or
What am I missing? |
|||
|
|
|
If it is for the same domain something like this would also suffice:
But if you have the Wordpress api available the wp_loginout() function is the best available option. |
|||
|
|