Menu
WordPress 2.0
This is how WordPress outputs users’s e-mail addresses if stored in current browser’s cache:
[code=php]<?php echo($comment_author_email); ?>
But I want to echo an alternate if there is no comment author e-mail available.
[code=php]<?php if ($comment_author_email = true;) { echo($comment_author_email); } else { echo(“[email protected]”); } ?>
That does not work though. Other suggestions?