Hallo allerseits,
ich bin ein Wordpressanfänger und hab mir nach einem Tutorial mit dem Starkers Theme von Elliot Jay Stocks ein eigenes Theme zusammengeschustert.
Jetzt ist es so, dass ich auf der index-Seite nur den neuesten Post anzeigen will und über eine Navigation darunter zu den jeweils älteren Post (auch immer nur einen) navigieren will. Im admin-Bereich habe ich eingestellt, dass nur 1 Post angezeigt wird.
Wenn ich jetzt über den Link zu dem nächst älteren Post gehen will, zeigt es mir eine neue Seite an, wo aber der aktuellste Post wieder drauf ist, und nicht der nächst älteste. Wäre sehr froh, wenn mir da jemand weiterhelfen könnte.
Hier mein Code der index-Seite:
PHP
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php query_posts('category_name=Aktuell'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><!--<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">--><?php the_title(); ?><!--</a>--></h2>
<p><?php the_time('j. F Y') ?> <!-- by <?php the_author() ?> --></p>
<?php the_content('Read the rest of this entry »'); ?>
<!--<p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>-->
</div>
<div class="clear"></div>
<?php endwhile; ?>
<ul class="archivNavi">
<li><?php next_posts_link('> Nächste') ?></li>
<li><?php previous_posts_link('> Frühere') ?></li>
</ul>
<?php else : ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>
Alles anzeigen