• Resolved enkayes

    (@enkayes)


    Hey all,

    I know that this has been posed a few times (did a search before I posted), but I haven’t seen a solution. One thing I noticed was that everyone asked for certain parts that weren’t provided, so I will provide them all.

    Anyway…

    When I click on Newer/Older Entries, my site 404’s.

    Permalink structure: %postname%
    Plugins: WP-Super Cache, Contact Form 7
    link to site

    HTACCESS

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    The Loop

    <?php query_posts('posts_per_page=4&order=DEC'); ?>
    			<?php if (have_posts()) : ?>
    
    				<?php while (have_posts()) : the_post(); ?>
    
    					<div class="post-contain" id="post-<?php the_ID(); ?>">
    						<div class="post">
    
    							<img src="/wp-content/images/post-strips/<?php echo get_post_meta($post->ID, 'post-picture-strip', true); ?>" alt="Geek Getting Fit" class="post-strip" />
    							<img src="<?php bloginfo('template_url'); ?>/images/date-slant.png" alt="Geek Getting Fit" class="date-slant" />
    							<div class="date-contain">
    								<p class="date-month">
    									<?php the_time('M') ?>
    								</p>
    
    								<p class="date-day">
    									<?php the_time('j') ?>
    								</p>
    
    							</div>
    
    							<div class="post-text-contain">
    
    								<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    								<?php the_excerpt('Read the rest of this entry &raquo;'); ?>
    
    								<p class="post-text-comments"> <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    
    							</div>
    
    						</div>
    
    					</div>
    
    				<?php endwhile; ?>
    
    				<ul>
    					<li><?php next_posts_link('&laquo; Older Entries') ?></li>
    					<li><?php previous_posts_link('Newer Entries &raquo;') ?></li>
    				</ul>
    
    			<?php else : ?>
    
    				<h2>Not Found</h2>
    				<p>Sorry, but you are looking for something that isn't here.</p>
    				<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    			<?php endif; ?>

    Hopefully this is enough!

    –nks

Viewing 1 replies (of 1 total)
  • Thread Starter enkayes

    (@enkayes)

    Fixed!

    First line screwed me up:
    <?php query_posts('posts_per_page=4&order=DEC'); ?>

    Just changed the settings in Settings–>Reading and it works!

Viewing 1 replies (of 1 total)

The topic ‘Older/Newer Entires = 404’ is closed to new replies.