adding coment_author to comments meta
-
I’m having a problem editing my comments meta. Here’s how it looks:
<div class="comment-meta"><?php printf(__("$customPostedText %1\$s at %2\$s <span class=\"meta-sep\">|</span> <a>Permalink</a>", 'sandbox'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID() ); edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
This yields “Requested [date] at [time] | Permalink | Edit”
I would like it to read “Requested [date] at [time] by [comment_author_link] | Permalink | Edit”
I’ve tried the following:
div class="comment-meta"><?php printf(__("$customPostedText %1\$s at %2\$s by <?php comment_author_link() ?>:<span class=\"meta-sep\">|</span> <a>Permalink</a>", 'sandbox'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID() ); edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
The result is: Requested [date] at [time] by 😐 Permalink | Edit
How do I fix this?
- The topic ‘adding coment_author to comments meta’ is closed to new replies.