• I am trying to customize the comments I leave on my own blog, by calling a special division if the email left is my own, otherwise it calls the normal division. Here is the code I am using:

    <?php
    if($comment->comment_author_email == ‘[email protected]’){ ?>
    <div class=”blogauthor”>
    <?php } else { ?>
    <div class=”normalcomment”>
    <?php } ?>

    However when i implement it I get an error on the comments saying:

    “an unexpected @ was found on the comment function”

    The error is obviously coming from the @ on the email I inserted.

    How can I solve this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to customize the comments made by the author’ is closed to new replies.