• I have searched the forum(s) and tried a couple things involving Query and tried some various code but obviously I can not figure out on my own why my Older/Newer nav at the bottom of my post page(s) are not working? It just takes you to the same posts (I have it set to show 3).

    I have read through many posts of people asking the same thing but haven’t been able to fix mine yet.

    Site is http://bowermandesign.com and I am using a modified Typograph Theme.

    Which php code file do I need to change and how? I am guessing it’s in the page.pgp file but I am not certain (so I am not certain which code file to paste here to show you either).

    Any Help would be greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • can you link to a webpage with the ‘next/prev’ links showing?

    the posts page template might be index.php – what is the code of the query if a custom query exists?

    Thread Starter jbowerman

    (@jbowerman)

    If you scroll all the way down to the bottom here it shows the “Older Posts” link at the bottom left(ish). My index.php is as follows:

    <?php get_header() ?>

    <?php
    $postnum = 1;
    $showFirstAd = 1;
    query_posts(‘cat=-1’);
    ?>

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

    <div id=”post-<?php the_ID() ?>” class=”<?php typograph_post_class() ?>”>
    <div class=”post-date”>
    <span class=”post-month”><?php the_time(‘M’) ?></span>
    <span class=”post-day”><?php the_time(‘d’) ?></span>
    </div>

    <div class=”cat-links”>
    <?php printf(__(‘%s’), get_the_category_list(‘, ‘)) ?>
    <?php edit_post_link(__(‘Edit’), “\t\t\t\t\t<span class=\”edit-link\”>”, “</span>\n\t\t\t\t\t<span class=\”meta-sep\”>|</span>\n”); ?>

    </div>

    <h2 class=”entry-title”>” title=”<?php printf(__(‘Permalink to %s’), wp_specialchars(get_the_title(), 1)) ?>” rel=”bookmark”><?php the_title() ?></h2>

    <div class=”entry-content”>
    <?php the_content(”.__(‘Get the whole story <span class=”meta-nav”>»</span>’).”); ?>
    <?php wp_link_pages(‘before=<div class=”page-link”>’ .__(‘Pages:’) . ‘&after=</div>’) ?>
    </div>
    <div class=”cat-links”>
    <?php the_tags(__(‘<span class=”tag-links”>Tags: ‘), “, “, “</span>\n\t\t\t\t\t”) ?>
    </div>

    </div><!– .post –>

    <div class=”clear”></div>

    <?php comments_template() ?>

    <?php endwhile ?>

    <div id=”nav-below” class=”navigation”>
    <div class=”nav-previous”><?php next_posts_link(__(‘<span class=”meta-nav”>«</span> Older posts’)) ?></div>
    <div class=”nav-next”><?php previous_posts_link(__(‘Newer posts <span class=”meta-nav”>»</span>’)) ?></div>
    </div>

    </div><!– #content –>

    <?php get_sidebar() ?>
    </div><!– #container –>

    <?php get_footer() ?>
    ___________________________________________________________________

    my page.php is as follows:

    <?php get_header() ?>

    <div class=”singlepost”>
    <?php the_post() ?>
    <div id=”post-<?php the_ID(); ?>”>

    <div class=”entry-content”>
    <?php the_content() ?>

    <?php wp_link_pages(“\t\t\t\t\t<div class=’page-link’>”.__(‘Pages: ‘), “</div>\n”, ‘number’); ?>

    <?php edit_post_link(__(‘Edit’),'<span class=”edit-link”>’,'</span>’) ?>

    </div>
    </div>
    </div><!– .post –>

    <?php if ( get_post_custom_values(‘comments’) ) comments_template() // Add a key+value of “comments” to enable comments on this page ?>

    </div><!– #content –>

    <?php get_sidebar() ?>
    </div><!– #container –>

    <?php get_footer() ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Older/Newer Posts Nav Not Working’ is closed to new replies.