WP-Andreas09 Bug
I have made a minor update to WP-Andreas09 after AndreasB found a bug.
Unfortunately, or maybe fortunately, the bug does not show up very easily and only happens when you try to browse to a single paged article, that does not exist, by an ID number. This is fairly unlikely and is even less likely if you have permalinks enabled.
To cure this problem you can either download the file again and reinstall or if you have made a lot of changes to the theme follow the method below to fix it.
First open the Single Post (single.php) file in the theme editor and look for the following code at the bottom of the page that looks something like this:
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<div class="bottomnavigation">
<div class="alignleft"><?php previous_post_link(’« %link’) ?></div>
<div class="alignright"><?php next_post_link(’%link »’) ?></div>
</div>
Then cut the <div class="bottomnavigation> section and paste it underneath the <?php comments_template(); ?> tag so that it now looks something like this:
<?php comments_template(); ?>
<div class="bottomnavigation">
<div class="alignleft"><?php previous_post_link(’« %link’) ?></div>
<div class="alignright"><?php next_post_link(’%link »’) ?></div>
</div><?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
That should be the problem fixed.
And yes I know it was a stupid mistake that should have been obvious! ![]()
This entry was posted on Tuesday, January 31st, 2006 at 10:59 pm and is filed under WordPress Themes. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
February 2nd, 2006 at 2:11 pm
[...] Update 02/02/06 Applied the fix for a little bug in the original theme by Ainslie Johnson to this version of the theme. The ZIP file contains the latest version. [...]