/ Published in: PHP
URL: http://wordpress.stackexchange.com/questions/19316/recent-comments-on-author-page
Thanks to @kaiser on WP answers for this.
Place this function in your functions.php file, then use it in your template with the function call like:
wpse19316authorcomments( 100 );
Expand |
Embed | Plain Text
function wpse19316_author_comments( $length ) { $final_length = (int) $length; foreach ( $author_comments as $comment ) { $comment_length = sublen( $comment->comment_content ); $comment_excerpt = $comment->comment_content; if ( $comment_length > $final_length ) } }
You need to login to post a comment.
