Hallo zusammen,
[INDENT]Ich hoffe dass ich hier im richtigen Forum bin ;)[/INDENT]
Ich habe folgendes Problem bei der Ausgabe der Posts.
Hier erst mal mein Code
HTML
<div class="row cf">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID, 'full') ); ?>
<div class="post">
<a href="#">
<div class="image" style="background-image: url(<?php echo $url ?>);">
<div class="time">
<div class="date">
<?php the_date('d M'); ?>
</div>
</div>
</div>
<div class="content">
<h1><?php the_title(); ?></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nam a nostrum nihil nulla hic laborum illum...</p>
<div class="meta">
<div class="icon-comment">22 Comments</div>
<ul class="tags">
<li></li>
<li></li>
</ul>
</div>
</div>
</a>
</div>
<?php endwhile; endif; ?>
</div>
Alles anzeigen
Aktuell ist es so, dass die Posts nebeneinander ausgegeben werden.
Ich hätte gern, dass immer zwei Posts nebeneinander stehen und dann eine neue Zeile angefangen wird mit dem neuen Post
Bsp.
Post ID 5. Post ID 4
Post ID 3. Post ID 2
Post ID 1
Hat hier jemand eine Idee?
Danke & Gruß
Svenmann