• Resolved junipingla

    (@junipingla)


    In my comment template I have this code:

    <?php foreach ($comments as $comment) : ?>
    <?php
    $isByAuthor = false;
    if($comment->comment_author_email == '[email protected]') {
    $isByAuthor = true;
    }
    ?>
    
    <li class="<?php echo $oddcomment; ?> <?php if($isByAuthor ) { echo 'authorcomment';} ?>" id="comment-<?php comment_ID() ?>">
    
    <cite><?php comment_author_link() ?></cite> skriver:
    			<?php if ($comment->comment_approved == '0') : ?>
    			<em>Your comment is awaiting moderation.</em>
    			<?php endif; ?>

    It make my own comments stand out. Now I would like to change this part “skriver:”
    When it’s my own admin comments I would like it to display “svarar:” instead. Any kind soul who can help me with the code?

    Thanks! :))

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help with PHP’ is closed to new replies.