$listings_post_type, 'post_status' => 'publish', 'posts_per_page' => 3, 'post__in' => $compared_items, ); $compares = new WP_Query( $args ); if ( $compares->have_posts() ) : ?>

have_posts() ) : $compares->the_post(); $counter ++; ?>
have_posts() ) : ?>
have_posts() ) : $compares->the_post(); ?>
'img-responsive stm-img-mobile-compare' ) ); ?>

 
name ) ) { $datas[] = esc_attr( $data_meta->name ); } } } if ( ! empty( $datas ) ) { echo esc_html( implode( ', ', $datas ) ); } else { esc_html_e( 'None', 'motors' ); } } } else { esc_html_e( 'None', 'motors' ); } ?>
post_count < 3 ) ? ' add-compare-mobile-show' : ''; ?>
<?php esc_attr_e( 'Empty', 'motors' ); ?>

have_posts() ) : ?>
<?php esc_attr_e( 'Empty', 'motors' ); ?>