Versteh das nicht und komme nicht weiter. Ich habe 3 Kategorien, welche ich immer mit den entsprechenden Post auflisten möchte. Wenn ich den Namen der Kategorie anklicke, dann sollen die aufgelisteten Posts der entsprechenden Kategorie erscheinen.
Leider erscheint aber immer nur ein Post, und zwar der aktuellste. Kann mir da jemand ein Tip geben?
PHP
<div id="reiter" class="reiterzahl-3 bg-blau");">
<ul>
<li class="blau"><a href=#>Die xxx</a></li>
<?php query_posts('cat=1&order=ASC'); ?>
<ul id="brot" class="brot-blau">
<?php while (have_posts()) : the_post(); ?>
<li class="home"> </li>
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<li class="home"> ></li><?php endwhile; ?>
</ul>
<li class="gruen"><a href=#>Der xxx</a></li>
<?php query_posts('cat=14&order=ASC'); ?>
<ul id="brot" class="brot-gruen">
<?php while (have_posts()) : the_post(); ?>
<li class="home"> </li>
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<li class="home"> ></li><?php endwhile; ?>
</ul>
<li class="orange"><a href=#>Unsere xxx</a></li>
<?php query_posts('cat=15&order=ASC'); ?>
<ul id="brot" class="brot-orange">
<?php while (have_posts()) : the_post(); ?>
<li class="home"> </li>
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<li class="home"> ></li>
<?php endwhile; ?>
</ul>
</ul>
</div>
Alles anzeigen
Liebe Grüße Matthias