Support » Fixing WordPress » How do I write this IF statement?

  • I tried this

    <li<?php if ($comment->comment_author_email == "myemail@example.com") { ?> class="authorcomment"<?php } ?>>

    Which works, but obviously that is a defined email. So I thought just change it to this.

    <li<?php if ($comment->comment_author_email == the_author_email) { ?> class="authorcomment"<?php } ?>>

    But nothing?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do I write this IF statement?’ is closed to new replies.