click on older entries doesnt show them-pagination problem
-
hey,
i am using theme overeasy, as it had a customized static home/index page , to show all post on a page called journal, i wrote the code below, the default archive.php is only for the side menu n looks like below. when i clik on older entires i go to the smae page, since i m calling showposts(8)
how to get tthis work….have bin trying since long..have a submission now
<?php/*
Template Name: Archive page
*/
?>
<?php get_header(); ?>
<div id=”columns”>
<div id=”centercol”>
<div class=”box”>
<div class=”top”></div>
<div class=”spacer”>
<div class=”page-title”>
Recent Journal Posts
</div>
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<div class=”post-meta clearfix”>
<div class=”post-titlex”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></div>
<span class=”post-time”>
<span>By <?php the_author_posts_link(); ?></span>
<?php the_time( ‘l F j, Y’ ) ?>
</span>
</div><!– End post-meta –>
<div class=”post-cat”>
Comments: <span class=”stress”<?php comments_popup_link(__( ‘0’ ), __( ‘1’ ), __( ‘%’ )); ?> </span> , Categories: <span class=”stress”><?php the_category(“,”); ?></span>
</div>
<div class=”post-box”>
<div class=”post-content”>
<?php if( get_post_meta( $post->ID, “image_value”, true ) ) : ?>
<div class=”post-image”>
</div>
<?php endif; ?>
<div class=”post-intro”>
<?php the_excerpt( ” ); ?>
</div><!– End post-intro –>
</div><!– End post-content –>
<div class=”post-footer clearfix”>
<span class=”continue-reading”>
</span>
</div><!– End post-footer –>
</div><!– End post-box –>
</div><!– End post –>
<?phpendwhile;
endif;
?>
</br>
<span class=”scroll left”><?php next_posts_link(‘« Older Entries’) ?></span>
<span class=”scroll right”><?php previous_posts_link(‘Newer Entries »’) ?></span>
<br class=”fix” />
<div class=”fix”></div>
</div>
<!–/spacer –>
<div class=”bot”></div>
</div>
<!–/box –>
</div>
<!–/centercol –>
<?php get_sidebar(); ?>
<br class=”fix” />
</div>
<!–/columns –>
<?php get_footer(); ?>
/
/
/
- The topic ‘click on older entries doesnt show them-pagination problem’ is closed to new replies.