원하는 위치에 [comment_count] 숏코드를 삽입합니다.
add_shortcode( 'comment_count', function(){ global $post; if( !is_single() ){ return ''; } $comment_number = get_comments_number($post->ID); return $comment_number; });
홈 >
원하는 위치에 [comment_count] 숏코드를 삽입합니다.
add_shortcode( 'comment_count', function(){ global $post; if( !is_single() ){ return ''; } $comment_number = get_comments_number($post->ID); return $comment_number; });
0개의 댓글