• I’m creating a new theme for my site that I’d ultimately like to be able to share.

    I can change the labels for “Previous Pages | Next Pages” well enough, but then I’ve got something like “Newer >> | << Older” when what I really want is “<< Older | Newer >>”

    It appears as though WP is placing the “newer-in-time” link before the “older-in-time” link.

    Just for kicks, I removed my custom labels, and the default labels are in fact backwards; that is, WP assigns “Next Page >>” to posts that occurred earlier in time and “<< Previous Page” to posts that occurred later in time.

    I haven’t touched the links-template.php file (and I don’t want to), but I’m not sure what my next steps should be. I’d appreciate any helpful advice. Thanks!

Viewing 1 replies (of 1 total)
  • I know this post is kinda old but I came across this issue with a theme I am using and resolved it as follows:

    Original theme code:

    posts_nav_link(' · ', __('Next entries &raquo;'), __('&laquo; Previous entries'));

    New Code:

    posts_nav_link('', '', __('&laquo; Previous entries'));
    posts_nav_link(' · ', '', '');
    posts_nav_link('', __('Next entries &raquo;'), '');

    Using blanks for the text allows you to put the links in the order you want.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘posts_nav_links seem to be backwards?’ is closed to new replies.