Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Charity

// WP_Query arguments
$args = array(
	'post_type'              => array( 'charity' ),
	'post_status'            => array( 'publish' ),
	'order'                  => 'ASC',
	'orderby'                => 'title',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'category',
		),
		array(
		),
	),
	'meta_query'             => array(
		array(
			'key'     => 'address_1',
			'type'    => 'CHAR',
		),
		array(
			'key'     => 'address_2',
			'type'    => 'CHAR',
		),
	),
);

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