Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

wew

wewe

// WP_Query arguments
$args = array(
	'post_type'              => array( 'trucksforsale' ),
	'post_status'            => array( 'publish' ),
	'paged'                  => '1',
	'posts_per_page'         => '10',
	'order'                  => 'ASC',
	'orderby'                => 'menu_order',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'materialtype',
			'terms'            => '2',
			'field'            => 'term_id',
		),
		array(
		),
	),
);

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