go41

Re: Comments: remove author URL link :: Reply by Joern

von Joern am 14. Jun. 2010 | Keine Kommentare

this gives the authors name with link:
<?php comment_author_link(); ?>
this shows the admin name if the comment is by the owner of the site:

<?php if($isByAuthor ) { echo ‚(author)‘;} ?>
replace comment_author_link(); with comment_author(); and there should be just a name, no link:

<?php comment_author(); ?>
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 1 weitere Ergebnisse dieses Threads:

Comments: remove author URL link

14. Jun. 2010 (von: adamwork)

This is my code for comments:Code:<?php if ($comments) : ?>   <h3 id="comments"><?php comments_number('No Comment', '1 Comment', '% Comments' );?></h3>   <ul class="commentlist">   <?php foreach ($comments as $comment) : ?>   <?php    $isByAuthor = false;    if($comment->comment_author_email == get_the_author_email()) {    $isByAuthor…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: