Getting full code of wp_list_comments instead of replacing it

I am wondering if this is possible, because I don’t want to edit the standard/default lay-out of the comments. I already tried that, but somehow it won’t put the list items in my div sections. That’s why I am trying to find the full code of wp_list_comments; I want to make changes to the list … Read more

Pagination comments

For some odd reason, I can’t seem to make the pagination work for comments. $args = array( ‘post_type’ => ‘products’, ‘status’ => ‘approve’, ); // The Query $comments_query = new WP_Comment_Query; $comments = $comments_query->query( $args ); // Comment Loop if ( $comments ) { foreach ( $comments as $comment ) { echo ‘<p>’ . $comment->comment_content … Read more

wp_list_comments adds unnecessary elements

wp_list_comments adds UL / OL or DIV which do not serve for my thema. how do I prevent this?? screeshots: http://d.pr/i/1bpn my code http://pastebin.com/bQxUyZTs tnx! Answer I think you have to add your own <li> when using callback. https://codex.wordpress.org/Function_Reference/wp_list_comments (see bottom info) AttributionSource : Link , Question Author : morpe , Answer Author : Steven

I need help about wordpress of members section

function yg_yorumsuz_link_gizle($content) { global $current_user, $post, $wpdb, $yg_yorumsuz_yazi; $mesaj = ”; //Eğer giriş yapılmamışsa if ( !is_user_logged_in() ) { $mesaj = ‘<a href=”‘.get_bloginfo(‘url’).’/wp-login.php”>Bağlantıyı Görmek için Giriş/Yorum Yapmalısınız</a>’; }else{ //Giriş yapılmışsa ancak yorum yapılmamışsa if ( (int) $yg_yorumsuz_yazi == $post->ID ) $yorum_sayisi = 0; else $yorum_sayisi = $wpdb->get_var($wpdb->prepare(“SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = ‘%d’ AND … Read more

Custom post type: can’t enable comments by default

I want to enable comments for custom post types just like they are for standard posts, but can’t seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ‘supports’ => array(‘title’, ‘author’, ‘thumbnail’, ‘comments’, ‘revisions’), In my single post type template I have this: <?php comments_template( … Read more