Exclude Post ID from Array Specified in Custom Field

Your question is pretty vague and you haven’t given any example code, but the following may work for you: <?php global $post; // Arguments $args = array(‘ /* Enter your arguments in here… */ ‘); // The query $the_query = new WP_Query( $args ); // The loop if ( $the_query->have_posts() ) { // Exclude ID … Read more

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

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