comment_excerpt does not work – bug or mistake?
-
I made a plugin, which should show latest comments with excerpt. it contain this code
echo "<a href='" . get_permalink($comment->comment_post_ID) .
'#comment-' . $comment->comment_ID . "'>" .
$comment->comment_excerpt . "</a>";
The problem is that returned code does not contain the excerpt. There is comment_post_ID, there is comment_ID, i then return also comment->comment_author and comment->comment_author_url without problems, but the comment_excerpt easily just not work. Is it bug or do i do it wrong? The function seems to exist (https://codex.www.ads-software.com/Template_Tags/comment_excerpt)is there any way how I can get latest xxx chars rounded to words from the comment?
- The topic ‘comment_excerpt does not work – bug or mistake?’ is closed to new replies.