$sponsor=new WP_Query(array(
'post_type'=>'sponsor',
'meta_key' => 'soort',
'orderby' => 'soort',
'order' => 'ASC',
'posts_per_page' => 100
));
$huidigeSoort = null;
if ($sponsor->have_posts()) {
while ($sponsor->have_posts()) {
$sponsor->the_post();
?>
if (get_field('soort') != $huidigeSoort) {
if (!is_null($huidigeSoort)) {
?>
}
$huidigeSoort = get_field('soort');
?>
Bus
if ($huidigeSoort=='website'): ?>
wp_reset_postdata();
} else {
do_action( 'builder_template_show_not_found' );
}
wp_reset_postdata();
?>
include('partials/share.php'); ?>