$hoho_post_id, 'status' => 'approve', 'parent' => 0, 'order' => 'ASC', ) ); $hoho_related = get_posts( array( 'post_type' => 'post', 'posts_per_page' => 4, 'post__not_in' => array( $hoho_post_id ), 'category__in' => wp_list_pluck( $hoho_cats, 'term_id' ), 'ignore_sticky_posts' => true, ) ); if ( count( $hoho_related ) < 4 ) { $hoho_related = array_merge( $hoho_related, get_posts( array( 'post_type' => 'post', 'posts_per_page' => 4 - count( $hoho_related ), 'post__not_in' => array_merge( array( $hoho_post_id ), wp_list_pluck( $hoho_related, 'ID' ) ), ) ) ); } $hoho_blog_url = hoho_blog_url(); /** * One review card in the design's markup. */ $hoho_review = function ( $comment, $classes ) use ( $hoho_post_id ) { $by_author = (int) $comment->user_id && (int) $comment->user_id === (int) get_post_field( 'post_author', $hoho_post_id ); ?>
'rcard__avatar' ) ); ?>

name ); ?>

$hoho_post_id, 'status' => 'approve', 'parent' => $hoho_comment->comment_ID, 'order' => 'ASC', ) ); if ( $hoho_replies ) { echo '
' . esc_html__( 'Replies', 'hoponhopoff' ) . ''; foreach ( $hoho_replies as $i => $hoho_reply ) { $hoho_review( $hoho_reply, $i % 2 ? 'rcard--tint rcard--reply' : 'rcard--reply' ); } echo '
'; } } ?>
3 ) : ?>