Prev | Next links are reversed
-
I have zero training in PHP, but I’m pretty successful at making changes because I’ve been learning through trial and error. I say that so you’ll go easy on any replies you send (remember, I’m a php noob).
Here’s the problem; my “Previous | Next” links work, but they go in reverse. In other words, “Next” shows me the OLDER posts while “Previous” shows me the newer ones. I realize this is a matter of taste, as Yahoo mail works this way, but to me it is counter-intuitive. Blogs are arranged chronologically, so “previous” should mean OLDER.
Incidentally, I also want to change the text to OLDER and NEWER.
Anyway, please guide me through the process of reversing this problem. On the relevant files I get this code at the bottom:
<?php posts_nav_link(‘ – ‘,’« Prev’,’Next »’) ?>
I made the following change:
<?php posts_nav_link(‘ – ‘,’« Newer’,’Older »’) ?>
… and that worked to change the labels. So now I get this on the page:
<< Newer – Older >>
But what I want is this:
<< Older – Newer >>
Obviously there’s more to it than just changing the labels. My problem is that I can’t figure out the logic or the syntax of the code. The way it’s written, it should produce:
– << Newer Older>>
As in, the dash seems to come first in the code, but not in the result. Also, what is the magic that makes “Newer” and “Older” know what link to make even when you change the text?
Ultimately, how do I get what I want?
- The topic ‘Prev | Next links are reversed’ is closed to new replies.