Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <div class="row grid">
- <?php if ( have_posts()) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div class="col-sm-4 news-item grid-item <?php getCategoryClassName(); ?>">
- <?php if(!empty(the_post_thumbnail)): ?>
- <div class="thumb-container">
- <a href="<?= get_the_permalink(); ?>"><?php the_post_thumbnail() ?></a>
- </div>
- <?php endif; ?>
- <h3><a href="<?= get_the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <?php if(get_field('organisatie') || get_field('begin_datum') || get_field('eind_datum')): ?>
- <ul>
- <?php if(get_field('organisatie')): ?>
- <li><strong><?php echo get_field_object('organisatie')['label']; ?>:</strong> <?php the_field('organisatie'); ?></li>
- <?php endif; ?>
- <?php if(get_field('begin_datum')): ?>
- <li><strong><?php echo get_field_object('begin_datum')['label']; ?>:</strong> <?php the_field('begin_datum'); ?></li>
- <?php endif; ?>
- <?php if(get_field('eind_datum')): ?>
- <li><strong><?php echo get_field_object('eind_datum')['label']; ?>:</strong> <?php the_field('eind_datum'); ?></li>
- <?php endif; ?>
- </ul>
- <?php endif; ?>
- <?= the_excerpt(); ?>
- <p>
- <a href="<?= get_the_permalink(); ?>" class="btn btn-primary">Lees meer <i class="fa fa-caret-right"></i></a>
- </p>
- </div>
- <?php endwhile; ?>
- <?php else: ?>
- <div class="col-sm-12 news-item">
- <h3>Geen nieuwsberichten</h3>
- <p>
- Er zijn helaas geen nieuwsberichten beschikbaar! Probeer het later nog een keer :)
- </p>
- </div>
- <?php endif; ?>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement