PHP
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="newsHead">
<h1><?php the_title(); ?></h1>
<?php the_date('d.m.Y', '<span>', '</span>'); ?>
<div class="cleaner"></div>
</div>
<div class="newsText"><?php the_content(""); ?></div>
<?php endwhile; ?>
<div class="navigation-footer">
<div class="alignleft"><?php next_posts_link("« Previous Entries") ?></div>
<div class="alignright"><?php previous_posts_link("Next Entries »") ?></div>
</div>
<?php else : ?>
<h2 class="center">Nicht gefunden...</h2>
<p class="center">Das wonach Sie suchen wurde leider nicht gefunden</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
Alles anzeigen
Das Datum wird aber nur beim aktuellsten Eintrag ausgegeben, siehe Quelltext:
Code
<div class="newsHead">
<h1>Neu im Angebot</h1>
<span>07.08.2007</span> <div class="cleaner"></div>
</div>
<div class="newsText"><p><strong>Mai 2007</strong></p>
<p>Raymondo CH 120.0175.4795.3 Raymo x Starbuck ab sofort in meinem Angebot erhältlich.<br />
M + 477 F +0.09 E –0.09 MBK 113<br />
ZW Exterieur GN. +1.06 FO +0.76 FU +1.29 EU +1.26 ZI +0.86</p>
</div>
<div class="newsHead">
<h1>Embryokuhkalb</h1>
<div class="cleaner"></div>
</div>
<div class="newsText"><p>Embryokuhkalb Flame-ET CH 120.0646.9592.8 Vinozak x Babels Starbuck Fanfare ist in Schwyz geboren.</p>
</div>
<div class="navigation-footer">
<div class="alignleft"><a href="http://www.stoeckligenetics.ch/page/2/">« Previous Entries</a></div>
<div class="alignright"></div>
</div>
Alles anzeigen
Woran könnte das liegen?