Hallo liebes WordPress Forum,
ich habe ein Problem anbei ein Bild zur bessern Verständnis.
Ich möchte das so aufteilen das ich die letzten zwei Geposteten Posts bei Newest stehen und dann der zweite Post runter rutscht wenn ich einen neuen Post hinzufüge.
Also sozusagen Post 1 und Post 2 und wenn Post 3 kommt das Post 1 dann zu Oldest Posts runterrutscht.
Kann man das irgendwie verwirklichen ?
Hier mein code:
<div id="newest"><span style="color:#239cd4;">N</span>EWEST POST</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry">
<?php the_content(); ?>
</div>
<div id="meta">
<p style="font-size: 12px;">erstellt am: <?php the_date('d.m.Y'); ?> um: <?php the_time('H:i'); ?> Uhr |
von: <?php the_author(); ?> |
Kategorie(n): <?php the_category(', '); ?></p>
</div>
<?php endwhile; endif; ?>
<div id="oldest"><span style="color:#239cd4;">O</span>LDEST POST</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content(); ?>
</div>
<div id="meta">
<p style="font-size: 12px;">erstellt am: <?php the_date('d.m.Y'); ?> |
von: <?php the_author(); ?> |
Kategorie(n): <?php the_category(', '); ?></p>
</div>
<?php endwhile; endif; ?>
wäre euch sehr dankbar :)
Lieben Gruß
stianfx