Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

wooo

// WP_Query arguments
$args = array(
	'post_type'              => array( 'product' ),
	'nopaging'               => true,
	'meta_query'             => array(
		array(
			'key'     => '_sku',
			'value'   => '899 %',
		),
	),
);

// The Query
$data = new WP_Query( $args );

// The Loop
if ( $data->have_posts() ) {
	while ( $data->have_posts() ) {
		$data->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();