Extra Navigation Buttons Problem
-
Right now on my blog at https://www.freshlyservedhiphop.com the first page is the only page that has the correct navigation buttons on the bottom. The ‘Previous Entries’ button is on there and works properly. On page 2, 3, 4, etc. extra navigation buttons appear at the bottom that say ‘Previous Page’ and ‘Next Page’ and they don’t work properly. Here’s the code from my main index file:
<?php get_header(); ?>
<?php get_sidebar(); ?><!– Content –>
<div id=”content”><?php $count = 1; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><!– Post –>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<div class=”post-title”>
<div class=”post-date”>
<span><?php the_time(‘d’) ?></span>
<?php the_time(‘M’) ?>
</div>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
Author: <?php the_author() ?> // Category: <?php the_category(‘, ‘) ?>
</div>
<div class=”post-entry”><?php the_content(‘Read more…’); ?>
</div><div class=”post-info”>
<?php comments_popup_link(‘Comments (0)’, ‘Comment (1)’, ‘Comments (%)’); ?> // #respond”>Add Comment
</div></div>
<?php if ($count == 1) : ?>
<center><!– Begin Adify tag for “MediumRectangle” Ad Space (300×250) ID #9081507 –>
<script type=”text/javascript”>
sr_adspace_id = 9081507;
sr_adspace_width = 300;
sr_adspace_height = 250;
sr_ad_new_window = true;
sr_adspace_type = “graphic”;
</script>
<script type=”text/javascript” src=”https://ad.afy11.net/srad.js?azId=9081507″>
</script>
<!– End Adify tag for “MediumRectangle” Ad Space (300×250) ID #9081507 –></center><?php endif; $count++; ?>
<!– /Post –>
<?php endwhile; ?>
<!– Navigation –>
<div class=”navigation”>
<div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
<div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
</div>
<!– /Navigation –>
<?php else : ?>
<!– Post –>
<div class=”post”>
<div class=”post-title”>
<h2>Not Found</h2>
</div>
<div class=”post-entry”>
<p>Sorry, but you are looking for something that isn’t here.</p>
</div>
</div>
<!– /Post –>
<?php endif; ?><div class=”clear”></div>
</div>
<!– /Content –><?php get_footer(); ?>
- The topic ‘Extra Navigation Buttons Problem’ is closed to new replies.