Get post id within comments loop
Note that it might be easier to use get_comments() here, since it’s defined as: function get_comments( $args=”” ) { $query = new WP_Comment_Query; return $query->query( $args ); } If you need the comment url, within your foreach comment loop, you can use: $comment_url = esc_url( get_comment_link( $comment ) ); You can also get the post … Read more