Adding URL code within an echo command
-
Hi,
I have a plugin that doesn’t quite do what I want. If a user isn’t logged in, it tells them they need to log in, but doesn’t give a link, so I’d like to add the link.
This is the original code:
elseif (!is_user_logged_in()) echo "<p>If you want to add yourself to this blog, please log in.</p>";
I tried the following, but it gave a 500 error:
elseif (!is_user_logged_in()) echo "<p>If you want to add yourself to this blog, please <a target="_blank" href="/">log in</a> or <a target="_blank" href="/wp-signup.php">sign up to the network</a> then refresh this page.</p>";
Is there a way in which I can do this?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding URL code within an echo command’ is closed to new replies.