![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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(', ') ?> · <?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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us