WordPress.org

Ready to get started?Download WordPress

Forums

Showing Next Page Link - but post is only one page (7 posts)

  1. jspirko
    Member
    Posted 9 years ago #

    I have created a new Page using WordPress 1.5. The problem I am having is the post is only one page (with comments closed), although at the bottom of the Page is a link to the "Next Page".

    When I click on the link, I get an error (obviously, there's only one page) saying "Sorry, no posts matched your criteria, please try and search again."

    I have verified that I do not have a "pages" tag in the post, so I don't know why WP is doing this.

    Please help. Here's an example:
    http://www.voteswagon.com/government-contacts/

  2. kri
    Member
    Posted 9 years ago #

    I can't really think of how to help you without seeing the code that you've used.

  3. kri
    Member
    Posted 9 years ago #

    I can't really think of how to help you without seeing the code that you've used.

  4. jspirko
    Member
    Posted 9 years ago #

    Here is the code used in the Page Content box:


    Confused with all the statistics thrown around in the news? We have collected several resources you can use to confirm your source, or cut through the politics. Listed below are links to quickly reference any government agency, government policy, or government statistic.

    <table width="100%" border="0">
    <tr>
    <td width="45%"><div align="center">
    <img src="http://www.voteswagon.com/wp-content/photos/logos/seal_us-senate.gif" border="0" width="150" height="150" alt="" title="" />
    United States Senate
    </div></td>
    <td><div align="center"></div></td>
    <td width="45%"><div align="center">
    <img src="http://www.voteswagon.com/wp-content/photos/logos/seal_us-house.gif" border="0" width="150" height="150" alt="" title="" />
    United States House of Representatives
    </div></td>
    </tr>
    <tr>
    <td width="45%"><div align="center"></div></td>
    <td><div align="center"></div></td>
    <td width="45%"><div align="center"></div></td>
    </tr>
    <tr>
    <td width="45%"><div align="center">
    <img src="http://www.voteswagon.com/wp-content/photos/logos/seal-presidential.gif" border="0" width="150" height="150" alt="" title="" />
    President of the United States
    </div></td>
    <td><div align="center"></div></td>
    <td width="45%"><div align="center">
    <img src="http://www.voteswagon.com/wp-content/photos/logos/seal_state-department.gif" border="0" width="150" height="150" alt="" title="" />
    United States Department of State
    </div></td>
    </tr>
    </table>
    <br>
    <br>

  5. kri
    Member
    Posted 9 years ago #

    Well, what I need to see is the code in the php file itself. This would show any PHP code and wordpress template tags that haven't been changed to HTML.

  6. Elliott
    Member
    Posted 9 years ago #

    kri... I'm having a similar issue and have posted the php code below from my archive page. Basically, no matter how many posts are in a cat, it always shows a Previous link...

    Page example:
    http://ielliott.com/2005/11/

    Code:


    <?php while (have_posts()) : the_post(); ?>
    <?php $post_class = ('postintro1' == $post_class) ? 'postintro2' : 'postintro1'; ?>
    <div id="frontpost">
    <div class="<?php echo $post_class; ?>">
    <h2 class="storytitle" id="post-<?php the_ID(); ?>">"><?php the_title(); ?>
    <span class="storytitledate"><?php the_time('F j, Y'); ?></span></h2>
    <?php if ($show_author) { ?>
    <div class="author"><small><?php the_author('namefl'); ?></small></div>
    <?php } ?>

    <div class="postintrocontent_archive"><?php the_content(); ?></div>

    <div class="postintrometa" style="clear:both;">
    <img src="<? echo $templateurl; ?>/images/icons/document2.gif" alt="Read The Post">" rel="bookmark" title="Read <?php the_title(); ?>">Read This Post
    <img src="<? echo $templateurl; ?>/images/icons/speech_bubble2.gif" alt="Comments"><?php comments_only_popup_link('No Comments', '1 Comment', '% Comments'); ?>
    <?php edit_post_link('[E]','  ',''); ?>
    </div>

    </div><!-- /postintro 1 or 2 -->
    </div><!-- /frontpost -->

    <?php endwhile; ?>

    <div class="entriesnav">
    <div class="alignleft"><?php posts_nav_link('','','<img src="'.$templateurl.'/images/icons/arrowl.gif" alt="«"> Previous Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next Entries <img src="'.$templateurl.'/images/icons/arrowr.gif" alt="»">','') ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Nothing Found</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <?php endif; ?>

    </div><!-- /toppanel -->
    </div><!-- /toppanelwide -->

    <?php include ($templateroot.'/footer.php'); ?>

  7. kri
    Member
    Posted 9 years ago #

    When I viewed your Entertainment category (http://ielliott.com/category/entertainment/) it only showed a previous and next link when there was a previous and next page to go to. It seems to be working as it's supposed to for me.

Topic Closed

This topic has been closed to new replies.

About this Topic