'projects', 'posts_per_page' => 20, 'paged' => $paged ); $keyword = $_GET['keyword']; if(!empty($keyword)) { $args['s'] = $keyword; } $meta_query = array(); $agency = $_GET['agency']; if(!empty($agency)) { $agency_query = array( 'key' => 'agencies', 'value' => '"' . $agency . '"', // matches exaclty "123", not just 123. This prevents a match for "1234" 'compare' => 'LIKE' ); array_push($meta_query, $agency_query); } $community = $_GET['community']; if(!empty($community)) { // community $community_query = array( 'key' => 'community_area', 'value' => $community, 'compare' => '=' ); array_push($meta_query, $community_query); } $ward = $_GET['ward']; if(!empty($ward)) { // ward $ward_query = array( 'key' => 'ward', 'value' => $ward, 'compare' => '=' ); array_push($meta_query, $ward_query); } if(!empty($_GET['zip'])) { // zip $zip_query = array( 'key' => 'zip', 'value' => $_GET['zip'], 'compare' => '=' ); array_push($meta_query, $zip_query); } $args['meta_query'] = $meta_query; //$search_query = wp_parse_str( $query_string ); //$search = new WP_Query( $search_query ); $the_query = new WP_Query( $args ); } get_header(); ?>
>
>

Project Search

The PBC continues to engage in projects that are bringing new resources, opportunities and jobs to our communities. Each project developed by the PBC embraces the type of positive social change that only public development can deliver.

have_posts() ) : ?> $the_query->max_num_pages, 'current' => $paged, 'show_all' => false, 'prev_next' => true, 'prev_text' => __('« Previous'), 'next_text' => __('Next »'), 'type' => 'none', ); ?>
    have_posts() ) : $the_query->the_post(); ?>

Sorry, no projects matched your criteria.