WordPress.org

Ready to get started?Download WordPress

Forums

PHP Parse error in my code. unexpected T_IF (2 posts)

  1. Silvetti
    Member
    Posted 8 years ago #

    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

  2. Kafkaesqui

    Posted 8 years ago #

    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)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.