Array ( [0] => WP_Comment Object ( [comment_ID] => 27017 [comment_post_ID] => 322 [comment_author] => nitesh tiwary [comment_author_email] => tiwarynitesh01@gmail.com [comment_author_url] => [comment_author_IP] => 123.252.134.108 [comment_date] => 2017-01-11 09:51:38 [comment_date_gmt] => 2017-01-11 09:51:38 [comment_content] => wow,its working..thanks for giving us this code [comment_karma] => 0 [comment_approved] => 1 [comment_agent] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 [comment_type] => [comment_parent] => 0 [user_id] => 0 [children:protected] => [populated_children:protected] => [post_fields:protected] => Array ( [0] => post_author [1] => post_date [2] => post_date_gmt [3] => post_content [4] => post_title [5] => post_excerpt [6] => post_status [7] => comment_status [8] => ping_status [9] => post_name [10] => to_ping [11] => pinged [12] => post_modified [13] => post_modified_gmt [14] => post_content_filtered [15] => post_parent [16] => guid [17] => menu_order [18] => post_type [19] => post_mime_type [20] => comment_count ) ) [1] => WP_Comment Object ( [comment_ID] => 23528 [comment_post_ID] => 476 [comment_author] => Aaron [comment_author_email] => amcguire2010@gmail.com [comment_author_url] => [comment_author_IP] => 50.124.17.51 [comment_date] => 2016-10-11 17:31:02 [comment_date_gmt] => 2016-10-11 17:31:02 [comment_content] => I forgot to say thanks though, just what I was looking for without an extension :) [comment_karma] => 0 [comment_approved] => 1 [comment_agent] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 [comment_type] => [comment_parent] => 0 [user_id] => 0 [children:protected] => [populated_children:protected] => [post_fields:protected] => Array ( [0] => post_author [1] => post_date [2] => post_date_gmt [3] => post_content [4] => post_title [5] => post_excerpt [6] => post_status [7] => comment_status [8] => ping_status [9] => post_name [10] => to_ping [11] => pinged [12] => post_modified [13] => post_modified_gmt [14] => post_content_filtered [15] => post_parent [16] => guid [17] => menu_order [18] => post_type [19] => post_mime_type [20] => comment_count ) ) [2] => WP_Comment Object ( [comment_ID] => 23527 [comment_post_ID] => 476 [comment_author] => Aaron [comment_author_email] => amcguire2010@gmail.com [comment_author_url] => [comment_author_IP] => 50.124.17.51 [comment_date] => 2016-10-11 17:29:34 [comment_date_gmt] => 2016-10-11 17:29:34 [comment_content] => For performance reasons, rather than selecting all of the attributes, just choose one. I went with 'entity_id'. That's like doing a SELECT * in MySQL when you only need one column. [comment_karma] => 0 [comment_approved] => 1 [comment_agent] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 [comment_type] => [comment_parent] => 0 [user_id] => 0 [children:protected] => [populated_children:protected] => [post_fields:protected] => Array ( [0] => post_author [1] => post_date [2] => post_date_gmt [3] => post_content [4] => post_title [5] => post_excerpt [6] => post_status [7] => comment_status [8] => ping_status [9] => post_name [10] => to_ping [11] => pinged [12] => post_modified [13] => post_modified_gmt [14] => post_content_filtered [15] => post_parent [16] => guid [17] => menu_order [18] => post_type [19] => post_mime_type [20] => comment_count ) ) [3] => WP_Comment Object ( [comment_ID] => 22798 [comment_post_ID] => 65 [comment_author] => jeeva [comment_author_email] => jeevarathinamit@gmail.com [comment_author_url] => [comment_author_IP] => 182.156.78.100 [comment_date] => 2016-09-12 10:58:44 [comment_date_gmt] => 2016-09-12 10:58:44 [comment_content] => where i can add this code [comment_karma] => 0 [comment_approved] => 1 [comment_agent] => Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 [comment_type] => [comment_parent] => 0 [user_id] => 0 [children:protected] => [populated_children:protected] => [post_fields:protected] => Array ( [0] => post_author [1] => post_date [2] => post_date_gmt [3] => post_content [4] => post_title [5] => post_excerpt [6] => post_status [7] => comment_status [8] => ping_status [9] => post_name [10] => to_ping [11] => pinged [12] => post_modified [13] => post_modified_gmt [14] => post_content_filtered [15] => post_parent [16] => guid [17] => menu_order [18] => post_type [19] => post_mime_type [20] => comment_count ) ) [4] => WP_Comment Object ( [comment_ID] => 22797 [comment_post_ID] => 476 [comment_author] => jeeva [comment_author_email] => jeevarathinamit@gmail.com [comment_author_url] => [comment_author_IP] => 182.156.78.100 [comment_date] => 2016-09-12 10:50:12 [comment_date_gmt] => 2016-09-12 10:50:12 [comment_content] => Thank you buddy, i need to try this solution last one week. [comment_karma] => 0 [comment_approved] => 1 [comment_agent] => Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 [comment_type] => [comment_parent] => 0 [user_id] => 0 [children:protected] => [populated_children:protected] => [post_fields:protected] => Array ( [0] => post_author [1] => post_date [2] => post_date_gmt [3] => post_content [4] => post_title [5] => post_excerpt [6] => post_status [7] => comment_status [8] => ping_status [9] => post_name [10] => to_ping [11] => pinged [12] => post_modified [13] => post_modified_gmt [14] => post_content_filtered [15] => post_parent [16] => guid [17] => menu_order [18] => post_type [19] => post_mime_type [20] => comment_count ) ) )