StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 10-31-2008, 11:57 PM
gavingough gavingough is offline
Registered User
 
Join Date: Oct 2008
Posts: 5
Default "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?
  #2  
Old 11-01-2008, 12:40 AM
Paul Paul is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Location: Edinburgh, UK
Posts: 1,499
Default Re: "Next Page" link not working

Please post the code from your blog page template Gavin.
__________________
Some of the websites I've built with StudioPress:
<a href="http://www.horseracing.fm">Horse Racing</a> | <a href="http://wedding-blog.net">Wedding Blog</a> | <a href="http://www.weddingtrix.com">Wedding Planning Guide</a> | <a href="http://advance.to">Search Engine Marketing</a> | <a href="http://www.automateyourprofits.com">Betting Software</a> | <a href="http://www.bettingbots.com">Betting Bots</a> | <a href="http://www.pokerclubscotland.com">Poker Club Scotland</a>
  #3  
Old 11-08-2008, 12:27 AM
gavingough gavingough is offline
Registered User
 
Join Date: Oct 2008
Posts: 5
Default 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(); ?>
  #4  
Old 11-08-2008, 12:38 AM
gavingough gavingough is offline
Registered User
 
Join Date: Oct 2008
Posts: 5
Default 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?
  #5  
Old 11-08-2008, 12:42 AM
gavingough gavingough is offline
Registered User
 
Join Date: Oct 2008
Posts: 5
Default 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?
  #6  
Old 11-08-2008, 12:48 AM
gavingough gavingough is offline
Registered User
 
Join Date: Oct 2008
Posts: 5
Default 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!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Next Page" and "Previous Page" not working. mchilson General Discussion 1 08-24-2010 04:52 PM
"More" link not working at bottom of home page katiemorton General Discussion 21 03-25-2010 02:08 PM
"blog" function of page not working correctly dynamic General Discussion 6 11-09-2009 03:49 AM
"read more" link in posts not working Stewart General Discussion 9 06-15-2009 04:20 PM


All times are GMT -5. The time now is 06:56 AM.

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