Hallo,
ich möchte das im Archiv alle Beiträge angezeigt werden, und nicht nur 2, wie hier:
Inhaltsangaben - Kategorie - Inhaltsangabe
Der Code in "archive.php" sieht wie folgt aus:
PHP
<?php
get_header();
?>
<div id="content">
<?php include(TEMPLATEPATH."/werbungbreit.php");?>
<div class="entry">
<!-- loop -->
<?php if (have_posts()) : ?>
[B] <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>[/B]
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1>Archiv für '
<?php echo single_cat_title(); ?>
' </h1>
<p>
(
<em>
zeitlich sortiert
</em>
)
</p>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1>Archiv für
<?php the_time('F jS, Y'); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1>Archiv für
<?php the_time('F, Y'); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1>Archiv für
<?php the_time('Y'); ?></h1>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h1>Suchergebnisse</h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1>Autor Archiv</h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1>Blog Archiv</h1>
<?php } ?>
<ul>
<?php //query_posts ?><br />
<?php while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>">
<?php the_title(); ?></a> |
<small>geschrieben am
<strong>
<?php the_time('j. F Y') ?></strong></small> </li>
<?php endwhile; ?>
</ul>
<div id="navigation" class="index">
<?php previous_posts_link('« Neuere Einträge ') ?>
<?php next_posts_link('Ältere Einträge »') ?>
</div>
<?php else : ?>
<?php include (TEMPLATEPATH . '/notfound.php'); ?>
<?php endif; ?>
<!-- end loop -->
</div>
<?php include(TEMPLATEPATH."/werbungbreit.php");?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Was muss ich ändern, dass ALLE Beiträge auf einmal anzeigt werden? (ich vermute irgendetwas im Fettmarkierten Bereich)
Vielen Dank jetzt schon,
Kevin