Do you have a URL of your old blog address and an example to compare?
Trent
After looking at your new blog, the ‘next’ and ‘previous’ links seem to work properly as it is going chrnologically through your blog.
Trent
Sure.
Old blog: http://rule41.wordpress.com/
Another blog running the same theme (freshy2), with Next/Previous post links working as intended: http://natsuneko.animeblogger.net/
Hope that helps.
I am sorry, but I am lost. The blog posts are in the same order and the previous and next buttons on the main page follow through in order. Am I looking the right place? Do you have a ‘specific’ example?
Trent
Yikes, that is a major issue. For testing purposes, does it do that if you quickly switch back to one of the default themes? As well, in post.php what is the exact code that is in there for next and previous calls in your theme?
Trent
I changed the blog theme to WordPress Default 1.6, and it’s working fine, so I’m guessing it’s a theme problem we’re dealing with here?
That being said and done, I have no idea how to look for next and previous calls, although I did find post.php; maybe you could instruct me on that.
Sure, from the default theme the calls look like this:
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
If you go to your Admin => Presentation => Theme Editor you can switch over to your theme and look for ‘post’ or ‘single post’ or whatever the name is and compare what it has for the ‘previous_post_link’ function and ‘next_post_link’ function. Just to compare if they are the same or not.
Trent
<p class="navigation">
<span class="alignleft"><?php previous_post_link('« %link','%title',true) ?></span>
<span class="alignright"><?php next_post_link('%link »') ?></span>
</p>
Those are the closest matches. From single.php.
‘post’ or ‘single post’ or whatever the name is
Wrong! It must be single.php – for displaying single posts. If it doesn’t exist, WP will use the index.php -> learn about the Template_Hierarchy!
Well, that ‘true’ = means in the same category, and that’s exactly waht blog is doing. Jumping to the previous posts in the same category!
It does exist though moshu I think. In my template, ‘single post’ links to editing single.php is all I was getting at. (in theme editor)
EDIT: Nice work picking out the exact template call π
Trent
It probably exist; I just couldn’t agree with your “whatever the name is” statement. There are certain filenames in a WP theme that has to follow the naming convention. One of those is single.php. Not whatever!
Fair enough and I am not arguing. Just have found most themes have the ‘hot name’ in the theme editor
(in admin) that is not ‘single’, but links to editing single.php anyways. Strange stuff as they should just name the file ‘single’ to avoid this kind of confusion (including myself).
Trent
moshu: So I should remove that ‘true’ part to fix the problem? Otherwise I can’t really infer the solution from what you said back there. It’s all Greek to me.