if (isset($subj_warning)) {
echo '
'.$subj_warning.'
';
} ?>
'pathway',
'showposts' => -1,
'orderby' => 'rand',
'order' => 'ASC',
'city' => get_query_var('city', $city_name),
//'subjects' => get_query_var('subjects', $subj_name),
);
$the_query = new WP_Query( $args );if ( $the_query->have_posts() ) {
echo '
';
}
wp_reset_postdata();
/*
$post_arr_1 = array();
$post_arr_2 = array();$acf_field_key = 'featured_school_or_not';
$acf_field_value = 1;
$args = array(
'post_type' => 'pathway',
'orderby' => 'title',
'order' => 'ASC',
'posts_per_page' => -1,
'meta_query' => array(
array(
'key' => $acf_field_key,
'value' => $acf_field_value,
'compare' => '='
),
),
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
$post_arr_1[]=get_the_ID();
}
wp_reset_postdata();
}$acf_field_key = 'featured_school_or_not';
$args = array(
'post_type' => 'pathway', // Change to your custom post type if needed
'orderby' => 'rand',
'posts_per_page' => -1, // Retrieve all posts that match the criteria
'meta_query' => array(
'relation' => 'OR',
array(
'key' => $acf_field_key,
'value' => '', // Empty value for blank
'compare' => '=',
),
array(
'key' => $acf_field_key,
'value' => '1', // Empty value for blank
'compare' => '!=',
),
array(
'key' => $acf_field_key,
'compare' => 'NOT EXISTS', // Not exist for not exist
),
),
);$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
$post_arr_2[]=get_the_ID();
}
wp_reset_postdata();
}$post_arr = array_merge($post_arr_1,$post_arr_2);
if($post_arr){
echo '
';
}
*/
}
?>