Problem displaying replies as part of author’s latest comments on author page

My bad. Should have added a foreach for the replies as well. <?php $args = array( ‘user_id’ => $curauth->ID, ‘number’ => 5, ‘status’ => ‘approve’, ‘parent’ => 0 ); $comments = get_comments($args); if ( $comments ) { foreach($comments as $c){ echo ‘<ul id=”authorcomments”>’; echo ‘<li>’; echo ‘<a id=”authorcommentlink” href=”‘.get_comment_link( $c->comment_ID ).'”> ‘; echo get_the_title($c->comment_post_ID); echo … Read more

Current user comments + post title

You can get the title of a post if you have the post ID and every comment is assigned to a post ID. So basically, just use the comment_post_ID + get_the_title() function: get_the_title($c->comment_post_ID);

Getting error while trying to use custom comment function

You should not have the () on the callback field. You shouldn’t need the add_action so remove add_action(‘load_comments’, ‘custom_comments’); And try: wp_list_comments(‘type=comment&callback=custom_comments’); Also, you should extract the $args so they are available in your function: function custom_comments($comment, $args, $depth) { $GLOBALS[‘comment’] = $comment; extract($args, EXTR_SKIP); //etc http://codex.wordpress.org/Function_Reference/wp_list_comments

Some comment box wordpress in 1 post [closed]

Yes it is possible but not exactly trivial or well documented. The easiest option is to have different comment types (ie, have new ones in addition to the traditional comment, pingback and tracback). The biggest problem with this approach is that most of wordpress API and admin is not built to be flexible enough to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)