Auf folgender Testseite http://test.irene-hofer.ch unter "Blog" funktioniert unten (1,2,3...) die Seitennavigation nicht richtig. Also egal welche Nummer man anklickt, man bleibt auf der gleichen Seite. Das Problem scheint zu sein, dass für den Link einfach die ID Nummer der aktuellen Seite (?page_id=896) ein "&paged=2" angehängt wird. Wer kann mir dabei helfen?
Danke
Hier wäre das gesamte PHP des Blog-Templates:
PHP
<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<!-- Begin #colleft -->
<div id="colLeft">
<?php $postindex = 1;
if(!query_posts('showposts='.get_option('journal_home_posts').'&tag=homepost')){
if(get_option('journal_home_posts')!=''){
query_posts('showposts='.get_option('journal_home_posts'));
}else{
query_posts('showposts=6');
}
}else{
query_posts('showposts='.get_option('journal_home_posts').'&tag=homepost');
if(get_option('journal_home_posts')!=''){
query_posts('showposts='.get_option('journal_home_posts').'&tag=homepost');
}else{
query_posts('showposts=6&tag=homepost');
}
}
if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if(get_option('journal_box_model')!="normal"){?>
<div class="postBox <?php if(($postindex % 2) == 0){ echo 'lastBox';}?>">
<div class="postBoxInner">
<?php
if ( has_post_thumbnail()) {
//the_post_thumbnail();?>
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_path($post->ID); ?>&h=90&w=255&zc=1" alt="<?php the_title(); ?>">
<?php } else {?>
<img src="<?php bloginfo('template_directory'); ?>/images/nothumb.jpg" alt="No Thumbnail" />
<?php } ?>
<h2><a href="<?php the_permalink() ?>" ><?php the_title(); ?></a></h2>
<div class="excerpt"><?php wpe_excerpt('wpe_excerptlength_index', 'wpe_excerptmore') ?></div>
<div class="meta"> <?php the_time('M j, Y') ?> <img src="<?php bloginfo('template_directory'); ?>/images/ico_post_comments.png" alt="" /> <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?></div>
</div>
<a href="<?php the_permalink() ?>" class="readMore">Read More</a>
</div>
<?php ++$postindex; ?>
<?php }else{?>
<div id="singlePost" class="normal">
<h1><a href="<?php the_permalink() ?>" ><?php the_title(); ?></a></h1>
<div class="meta">
<?php the_time('M j, Y') ?> by <?php the_author_posts_link()?> <img src="<?php bloginfo('template_directory'); ?>/images/ico_post_comments.png" alt="" /> <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?> <img src="<?php bloginfo('template_directory'); ?>/images/ico_post_date.png" alt="" /> Posted under: <?php the_category(', ') ?>
</div>
<?php the_content(__('Read more »')); ?>
</div>
<?php }?>
<?php endwhile; ?>
<?php else : ?>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
<div style="clear:both;"></div>
<?php if (function_exists("emm_paginate")) {
emm_paginate();
} ?>
</div>
<!-- End #colLeft -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen