Pagenavigation is not working
-
Hi
I’m creating a new website and i have the following test-server:
http://test.irene-hofer.ch. In “Blog”, I’m using a page-navigation at the bottom (1,2,3…) but somehow, this isn’t working. When I choose any number, I stay on exactly the same page. I see that there is a problem with the link. The page ID of “Blog” is ?page_id=896 and the link for another websites is only ?page_id=896&paged=2.It would be great if anyone could help me. Here is the PHP for the Blog-Template. (I’m using a special theme, so I have a seperate PHP for the Blog).
<?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(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Pagenavigation is not working’ is closed to new replies.