WordPress.org

Ready to get started?Download WordPress

Forums

click on older entries doesnt show them-pagination problem (4 posts)

  1. arpita123
    Member
    Posted 4 years ago #

    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">

    " rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=521&h=246&zc=1" alt="<?php the_title(); ?>" />

    </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">

    #more-<?php the_ID(); ?>" rel="bookmark" title="Continue Reading <?php the_title_attribute(); ?>">Continue Reading

    </span>

    </div><!-- End post-footer -->

    </div><!-- End post-box -->

    </div><!-- End post -->
    <?php

    endwhile;

    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(); ?>
    /
    /
    /

  2. arpita123
    Member
    Posted 4 years ago #

    forgot to attach archive.php default tht came vth the theme-----

    <?php get_header(); ?>

    <div id="columns">

    <div id="centercol">

    <div class="box">

    <div class="top"></div>

    <div class="spacer">

    <?php if(have_posts()) : ?>

    <?php while(have_posts()) : the_post() ?>

    <div id="post-<?php the_ID(); ?>" class="post">

    <?php $category = get_the_category(); // To show only 1 Category ?>

    <div class="btn-cat"><span class="btn-general"><?php the_category(","); ?></span></div>

    <h2>" rel="bookmark" title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

    <div class="date"><?php the_time('F j, Y'); ?> <?php comments_popup_link( __('No comments yet',woothemes), __('1 comment',woothemes), __('% comments',woothemes)); ?></div>

    <?php if ( get_option('woo_the_content') == "true" ) { the_content(__('<div class="btn-continue">Continue Reading</div>',woothemes)); } else { the_excerpt(); ?>

    <div class="btn-continue">"><?php _e('Continue Reading',woothemes); ?></div>

    <?php } ?>

    <div class="fix"></div>

    </div>

    <!--/post-->

    <?php endwhile; ?>

    <div class="btn-arr fl"><?php next_posts_link(__('« Older Entries',woothemes)) ?></div>

    <div class="btn-arr fr"><?php previous_posts_link(__('Newer Entries »',woothemes)) ?></div>

    <br class="fix" />

    <?php endif; ?>

    </div>

    <!--/spacer -->

    <div class="bot"></div>

    </div>

    <!--/box -->

    </div>

    <!--/centercol -->

    <?php get_sidebar(); ?>

    <br class="fix" />

    </div>

    <!--/columns -->

    <?php get_footer(); ?>

  3. bmose14
    Member
    Posted 4 years ago #

    Have you found a solution? I have the same problem. Thanks!

  4. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    @bmose14
    always better to open a new thread, and to post the name of your theme, and a link to your site.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags