Support » Everything else WordPress » PHP Parse error in my code. unexpected T_IF

  • Silvetti

    (@silvetti)


    Hi there I tried to use this code but get a parse error:

    Parse error: parse error, unexpected T_IF in /home/public_html/news/wp-content/themes/eo_mrk2/comments.php on line 37′

    ‘<li class=”<?php echo $oddcomment; ?><?php if(if(is_wpuser_comment() != 0) { echo ” owner username_”.comment_wpusername(); } ?>” id=”comment-<?php comment_ID() ?>”>’

    What might I be doing wrong?

    Thanks

Viewing 1 replies (of 1 total)
  • Kafkaesqui

    (@kafkaesqui)

    if(if(is_wpuser_comment() != 0)

    That doesn’t look right. You’ve doubled-up on your if statement.

    Also, is is_wpuser_comment() a plugin function? If so, try altering the first part of the code to:

    if(is_wpuser_comment() != 0)

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Parse error in my code. unexpected T_IF’ is closed to new replies.