Example #1
0
					<?php 
while (have_posts()) {
    the_post();
}
the_content();
?>
					</article>
				</div>
				<aside class="page-sidebar  col-md-3 col-md-offset-1 col-sm-4 col-sm-offset-1 col-xs-12">
					<section class="widget has-divider">
						<h3 class="title">Altri articoli</h3>
						<?php 
$related = array('post__not_in' => array(get_the_ID()), 'orderby' => 'date', 'posts_per_page' => '10');
$relQuery = new Query();
$relQuery->setLoop($related);
while ($relQuery->have_posts()) {
    $relQuery->the_post();
    ?>
						<article class="news-item row">
							<?php 
    if (has_post_thumbnail()) {
        ?>
							<figure class="thumb col-md-2 col-sm-3 col-xs-3">
								<?php 
        the_post_thumbnail('post-thumbnail');
        ?>
							</figure>
							<div class="details col-md-10 col-sm-9 col-xs-9">
								<?php 
        the_title('<h4 class="title"><a href="' . get_the_permalink() . '">', '</a></h4>');
        ?>