Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'orderby' => 'title',
- 'post_type' => 'studentensteden',
- );
- $the_query = new WP_Query( $args );
- ?>
- <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
- <div class="sclisting">
- <?php if ( has_post_thumbnail() ) : ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
- <?php the_post_thumbnail( 'large' ); ?>
- </a>
- <?php endif; ?>
- <h3 class="the-title"><?php the_title(); ?></h3>
- <div class="isbn-number">Provincie <?php the_field('provincie');?> | Gemeente <?php the_field('gemeente');?> | <?php the_field('aantalinwoners');?> Inwoners</div>
- <div class="isbn-number">Opleidingen | Hogescholen | Universiteiten</div>
- <div class="isbn-number">In totaal studeren er <?php the_field('studentenstuderend');?> studenten en wonen er <?php the_field('studentenwoonachtig');?> studenten.</div>
- <div class="isbn-number">Je vindt er <?php the_field('aantalbioscopen');?> bioscopen, <?php the_field('aantalkroegen');?> kroegen, <?php the_field('aantalmusea');?> musea en <?php the_field('aantaltheaters');?> theaters.</div>
- </div></a>
- <?php endwhile; else: ?> <p>Sorry, there are no posts to display</p> <?php endif; ?>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement