Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

pdstudio on "IF logged in, show logout link doesnt work"

$
0
0

Hy,
I want to make a logout link for the logged in users.
I inserted this code to my template file:
<?php if ( is_user_logged_in() ) { echo "<a href=\"" . wp_logout_url( 'http://www.deependfx.com' ); ."\" title=\"Logout\">You are now logged in. Click here to log-out.</a> }; ?>
but I get an error:

Parse error: syntax error, unexpected '.'

What am I doing wrong?


Viewing all articles
Browse latest Browse all 8245

Trending Articles