• tjobbe

    (@tjobbe)


    I have searched Google and these forums but have not yet found an answer that solves my problem.

    https://www.ribs4u.co.uk/ribs-in-stock/ this category displays a list of posts, and it is set to show 10 per page and I knwo that there are 12 posts in that category, but when clicking the “older entries” link you get the following message on https://www.ribs4u.co.uk/ribs-in-stock/page/2/Not Found – Sorry, but you are looking for something that isn’t here.

    I’m using a static page as the home page as defined in settings > reading settings.

    Here is my home page code:

    <?php get_header(); ?>
    	<div id="content">
    		<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<!--h2><a href="<?php //the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php //the_title_attribute(); ?>"><?php //the_title(); ?></a></h2>
    			<small><?php //the_time('F jS, Y') ?> <!-- by <?php //the_author() ?> --></small-->
    			<div class="entry clearfix">
    				<?php the_content('</p><p class="moreLink">Click here for the full boat details &raquo;'); ?>
    			</div>
    			<!--p class="postmetadata"><?php //the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php //the_category(', ') ?> | <?php //edit_post_link('Edit', '', ' | '); ?>  <?php //comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p-->
    		</div>
    		<?php endwhile; ?>
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    		<?php else : ?>
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php endif; ?>
    	</div>
    	<?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    Can anyone please help me?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter tjobbe

    (@tjobbe)

    Up top for the reason that I have actively been searching and trying to fix this with code samples etc, but still not succeeding.

    wpceo

    (@photozero)

    Did the .htaccess file exists?

    Thread Starter tjobbe

    (@tjobbe)

    yep, and it contains this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Thread Starter tjobbe

    (@tjobbe)

    I’m still having problems with this, can anyone please help?

    Thread Starter tjobbe

    (@tjobbe)

    Ahem, seemed to have fixed this.

    I incorrectly linked to: https://www.ribs4u.co.uk/ribs-in-stock/

    instead of: https://www.ribs4u.co.uk/category/ribs-in-stock/

    Fixed now!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘previous / next links not working’ is closed to new replies.