Quantcast
Viewing all articles
Browse latest Browse all 31591

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

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 31591

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>