Warum wird die [(vorherige)--(nächste)] Navigation bei diesem Code nicht angezeigt?
PHP
<?php
/*
Template Name: blog
*/
?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<?php $dor_query = new WP_Query('cat=1&showposts=1');
if ($dor_query->have_posts()) {
while ($dor_query->have_posts()) : $dor_query->the_post();
endwhile; while ($dor_query->have_posts()) : $dor_query->the_post();
?>
<div class="post"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php
// this grabs the image filename
$values = get_post_custom_values("bild");
// this checks to see if an image file exists
if (isset($values[0])) {
?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="permanent link to:: <?php the_title(); ?>"><img class="index" src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php $values = get_post_custom_values("bild"); echo $values[0]; ?>" alt="" width="140px" align="right"/></a>
<?php } ?>
<?php the_excerpt('weiterlesen »'); ?><p style="text-align:right;"><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="permanent link to:: <?php the_title(); ?>">...read the rest of this entry</a></strong></p>
<p class="postinfo"><strong>This article was posted:</strong> <?php the_time('F jS, Y') ?> filled under <?php the_category(', ') ?>.<br />
<?php the_tags('Tags: ', ', ', '<br />'); ?>
<a href="<?php comments_link(); ?>"><strong>Comments:</strong> <?php comments_number('none','1','%'); ?></a>
<?php edit_post_link('edit',' | ',''); ?></p>
</div>
<div class="navigation">
<p><span class="prevlink"><?php previous_post_link('« %link') ?></span>
<span class="nextlink"><?php next_post_link('%link »') ?></span></p>
</div>
<?php endwhile; ?>
<?php } ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
jemand einen passenden Tipp?