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

show latest authors blog post

Please Try This To Get Post in DESC order $args = array( ‘orderby’ => ‘title’, ‘order’ => ‘DESC’, ‘author’ =>’authorName’, ); $query = new WP_Query( $args ); // The Loop if ( $query ->have_posts() ) { echo ‘<ul>’; while ( $query ->have_posts() ) { $query ->the_post(); echo ‘<li>’ . get_the_title() . ‘</li>’; } echo ‘</ul>’; … Read more

Sticky post of current viewing author?

I find what was missing ($wp_query->queried_object_id;), here is answer: $current_browsing_author = $wp_query->queried_object_id; // Get current browsing author $sticky = get_option( ‘sticky_posts’ ); rsort( $sticky ); $sticky = array_slice( $sticky, 0, 5000 ); query_posts( array( ‘post__in’ => $sticky, ‘author’ => $author, ‘orderby’ => ‘rand’, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 5, ‘caller_get_posts’=> 5 ) … Read more

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