slug . '-' . $category->term_id; } } /* is listing active or sold? */ $sold = get_post_meta( get_the_ID(), 'car_mark_as_sold', true ); if ( ! empty( $sold ) && 'on' === $sold ) { $classes[] = 'listing_is_sold'; } else { $classes[] = 'listing_is_active'; } $quantity_listings = get_post_meta( stm_get_listing_archive_page_id(), 'quant_grid_items', true ); if ( ! empty( $quantity_per_row ) ) { $quantity_listings = $quantity_per_row; } if ( ! empty( $wp_query->get( 'quantity_per_row' ) ) ) { $quantity_listings = $wp_query->get( 'quantity_per_row' ); } $col = ( ! empty( $quantity_listings ) ) ? 12 / $quantity_listings : 4; if ( apply_filters( 'stm_is_dealer_two', false ) && ! apply_filters( 'stm_is_elementor_dealer_two', false ) && empty( $quantity_listings ) ) { $col = 6; } $col_class = sprintf( 'col-md-%1$d col-sm-%1$d col-xs-12 col-xxs-12 ', $col ); if ( ! empty( $class ) && is_array( $class ) ) { if ( strpos( $class[0], 'col-' ) !== false ) { $col_class = ''; } $classes = array_merge( $classes, $class ); } ?>