Example #1
0
										  <h4 class="yeardivider"><?php 
    echo $year;
    ?>
</h4>
										  <div class="child-container">
										    <?php 
    foreach ($posts as $post) {
        setup_postdata($post);
        ?>

										    	<?php 
        echo '<div class="child">';
        $importedID = $post->ID;
        echo '<div class="date">' . mysql2date('d. F, Y', $post->post_date) . '</div>';
        echo '<a href="' . rewrite_post_parmalink(get_permalink()) . '">' . '<h3>' . $post->post_title . '</h3></a>';
        echo '<a class="ingresslink" href="' . rewrite_post_parmalink(get_permalink()) . '">' . '<p>' . $post->post_excerpt . '</p></a>';
        echo '</div>';
        ?>
										    <?php 
    }
    ?>
<div class="clear"></div>
										  </div>
										<?php 
}
?>
							    	</div>
						    	</div>

						    </div>
Example #2
0
			    <div class="dropdown">
				    <div class="dropdown-header" data-toggle="collapse">
				    	<div class="mainheader-icon"></div>
						<h4>2010</h4>
				    </div>
				    <div class="dropdown-collapse">
				    	<div class="dropdown-child-excerpt">
				    		<?php 
$args = array('post_type' => 'post', 'posts_per_page' => -1, 'tag' => 'pressemelding', 'category_name' => '2010-pressemelding');
$presse_query = new WP_Query($args);
while ($presse_query->have_posts()) {
    $presse_query->the_post();
    echo '<div class="child">';
    $importedID = $post->ID;
    echo '<div class="date">' . mysql2date('d. F, Y', $post->post_date) . '</div>';
    echo '<a href="' . rewrite_post_parmalink(get_permalink()) . '">' . '<h3>' . $post->post_title . '</h3></a>';
    echo '<p>' . $post->post_excerpt . '</p>';
    echo '</div>';
}
wp_reset_postdata();
?>
							<div class="clear"></div>
				    	</div>
			    	</div>
			    </div>
			</div>
			<div class="clear"></div>
		</section>
		<br />
		<section class="pressebilder p-0-20">
			<h3>Pressebilder</h3>