WordPress.org

Forums

Page/2 problem (5 posts)

  1. Filostoof
    Member
    Posted 8 years ago #

    Hi, I was wondering what causes my page2/ problem.

    If I press previous entrys (at the bottom) on my homepage I get the same page back although the url does change. There are previous posts, really ;)

    Am I missing some sort of code in the homepage for this function, can it be the template?

    http://www.filostofie.nl/
    http://www.filostofie.nl/page/2/

  2. Chris_K
    Member
    Posted 8 years ago #

    Just for grins, try changing to the Default theme to see if it still happens.

    If things work with Default, we'll need to figure out what WordPress tags your current theme is using for that navigation and make some adjustments.

    Template_Tags

  3. Filostoof
    Member
    Posted 8 years ago #

    Excuse me for the late reply... you are right, It works in default mode...

    the code for this thing is:

    <span class="alignleft"><?php next_posts_link('« Previous Entries') ?></span>
    <span class="alignright"><?php previous_posts_link('Next Entries »') ?></span>

  4. Filostoof
    Member
    Posted 8 years ago #

    Hmm when I look at the page of the original designer, he does not even have that option. It probably has something to do with the latest post thingie in the grey area of my site...

    A hell, I just give you the code of the page, I someone can help me, I am very pleased!


    <!-- BEGIN #latest -->
    <div id="latest"><div id="latest-inner">

    <div id="post-latest" id="post-<?php the_ID(); ?>">
    <?php
    $posts = get_posts('numberposts=1');
    foreach($posts as $post) :
    setup_postdata($post);
    ?>
    <h2 class="post-title">" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <p class="post-meta"><?php the_time('F jS, Y') ?> / <?php the_category(', ') ?> / <?php comments_popup_link('No comments', '1 comment', '% comments','Comments are off for this post'); ?>
    <div class="post-body">
    <?php the_content('Continue reading'); ?>

    </div>
    </div>
    <?php endforeach; ?>

    <div id="sec-about"><h3 class="sec-title">Vluchtig</h3><?php wp_quotes_random(); ?>
    </div>

    <div class="clear"></div>
    </div></div>
    <!-- END #latest -->

    <!-- BEGIN #wrap -->
    <div id ="wrap">

    <?php include (TEMPLATEPATH . "/col-left.php"); ?>

    <!-- BEGIN #col-main -->
    <div id="col-main">

    <h3 class="sec-title">Recent articles</h3>
    <?php
    $posts = get_posts('numberposts=5&offset=1');
    foreach($posts as $post) :
    setup_postdata($post);
    ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2 class="post-title">" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <p class="post-meta"><?php the_time('F jS, Y') ?> / <?php the_category(', ') ?> / <?php comments_popup_link('No comments', '1 comment', '% comments','Comments are off for this post'); ?>
    <div class="post-body">
    <?php the_content('Continue reading'); ?>
    </div>
    </div>
    <?php endforeach; ?>
    <div class="content-navigate">
    <span class="alignleft"><?php next_posts_link('« Previous Entries') ?></span>
    <span class="alignright"><?php previous_posts_link('Next Entries »') ?></span>
    </div>

    </div>

  5. Filostoof
    Member
    Posted 8 years ago #

    And to conclude... the arhive pages does work, so it is definitly a problem of the latest post area..

    http://www.filostofie.nl/category/still/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags