‘banners’, posts => -1,’post_status’ => array(‘publish’));
$my_posts = new WP_Query( $args );
$i=1;
while($my_posts->have_posts()) : $my_posts->the_post();
$pid = get_the_ID();
$image = get_field(‘jury_banner’);
?>
3rd Annual
‘juri’, posts => -1,’orderby’ => ‘title’, ‘order’ => ‘ASC’,’post_status’ => array(‘publish’),
‘meta_query’ => array(
array(
‘key’ => ‘select_year’, // name of custom field
‘value’ => ‘2018’,
‘compare’ => ‘LIKE’
)));
$my_posts = new WP_Query( $args );
$k=1;
while($my_posts->have_posts()) : $my_posts->the_post();
$pid = get_the_ID();
$image = get_field(‘image’);
?>
‘juri’,’orderby’ => ‘title’, ‘order’ => ‘ASC’, posts => -1,’post_status’ => array(‘publish’),
‘meta_query’ => array(
array(
‘key’ => ‘select_year’, // name of custom field
‘value’ => ‘2016’,
‘compare’ => ‘LIKE’
)));
$k=1;
while($my_posts->have_posts()) : $my_posts->the_post();
$pid = get_the_ID();
$image = get_field(‘image’);
?>