StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   "Next Page" link not working (http://www.studiopress.com/support/showthread.php?t=123)

gavingough 10-31-2008 11:57 PM

"Next Page" link not working
 
Hi, the 'next page' link at the bottom of my blog (http://www.gavingough.com/blog) is returning a 'Page Not Found 404' error but I can't see how or where I can fix this.

The link points to http://www.gavingough.com/blog/page/2 and that's obviously not right but I'm not sure what it should be or where I would alter it.

Any suggestions?

Paul 11-01-2008 12:40 AM

Re: "Next Page" link not working
 
Please post the code from your blog page template Gavin.

gavingough 11-08-2008 12:27 AM

Re: "Next Page" link not working
 
Hi Paul

This is the code from the page_blog.php file, is that the right one?

<?php
/*
Template Name: Blog Page
*/
?>

<?php get_header(); ?>

<div id="content">

<div id="contentleft">

<div class="postarea">

<?php include(TEMPLATEPATH."/breadcrumb.php");?>



<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("showposts=5&paged=$page"); while ( have_posts() ) : the_post() ?>
<h1><?php the_title(); ?></h1>

<div class="date">


<?php the_time('F j, Y'); ?></p>
</div>

<?php the_content(__('[Read more]'));?><div style="clear:both;"></div>

<div class="postmeta2">


Filed Under <?php the_category(', ') ?> &middot; <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
</div>

<?php endwhile; ?>



<?php posts_nav_link(); ?></p>

</div>

</div>

<?php include(TEMPLATEPATH."/sidebar_post.php");?>

</div>



<?php get_footer(); ?>

gavingough 11-08-2008 12:38 AM

Re: "Next Page" link not working
 
Also, I think I've got myself confused about how Wordpress manages blog posts. Although the url for my blog is http://www.gavingough.com/blog there is no "blog" directory on my server. I'm not sure how it works so perhaps somebody can shed some light on that for me?

gavingough 11-08-2008 12:42 AM

Re: "Next Page" link not working
 
And as a further thought, I've altered the settings on the Customize Permalink Structure page under the setting to read as follows:

Custom Structure: /blog/%postname%

Could this be causing a problem?

gavingough 11-08-2008 12:48 AM

Re: "Next Page" link not working
 
Tsk! I think I've answered my own question. I rested the custom url settings to one of the defaults and the "NExt Page" is working again.

I can't claim to have fully understood how or why but it's working and I guess that's what is important.

Cheers!


All times are GMT -5. The time now is 03:14 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.