请注意,它可能更易于使用get_comments() 此处,因为其定义为:
function get_comments( $args = \'\' ) {
    $query = new WP_Comment_Query;
    return $query->query( $args );
}
 如果需要注释url,请在
foreach 注释循环,您可以使用:
$comment_url =  esc_url( get_comment_link( $comment ) );
 您还可以从
$comment 对象具有:
$post_id = $comment->comment_post_ID;
 然后,您可以使用它来检索自定义post meta:
$property_address = get_post_meta( $post_id ,\'imic_property_site_address\',true);
 获取相应的
post permalink$post_url = esc_url( get_permalink( $post_id ) );