storingold
<div id="content-area" class="clearfix">
<div id="left-area">
<?php
$args = array(
'post_type' => 'nieuws',
'posts_per_page' => -1,
'order' => 'DESC',
);
$query = new WP_Query($args);
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post();
$datum = date('d-m-Y', strtotime(get_the_date()));
$titel = get_the_title();
$status = get_post_meta(get_the_ID(), 'storing_status', true);
echo '<article id="post-' . get_the_ID() . '" class="et_pb_post post-' . get_the_ID() . ' storing type-storing status-publish hentry">';
echo '<h2 class="entry-title"><a href="' . get_permalink() . '">' . $titel . ' ' . $datum . '</a></h2>';
echo '<p class="post-meta">door <span class="author vcard"><a title="Posts van ' . get_the_author() . '" href="' . get_author_posts_url(get_the_author_meta('ID')) . '" rel="author">' . get_the_author() . '</a></span> | ' . $datum . ' | <strong>Status</strong>: ' . $status . '</p>';
echo get_the_content();
echo '</article>';
}
} else {
echo 'Geen nieuwsberichten gevonden.';
}
wp_reset_post_data();
?>
</div>
<div id="sidebar"> </div>
</div>
lala