• My News (blog) menu page is set up as a Post category. The “Newer” and “Older” links that appear at the bottom of each page of posts are backwards. This has been true with WP Folio 1.75 and all earlier versions. Only “Newer” appears on the newest page, clicking on it takes you to the next older page. Clicking on “Older” on an older page takes you to a newer page and vice-versa. You can have a look at: https://www.damnfineart.com/archives/category/news for an example of this. I think the fix is in the code for the template. If I am doing something wrong, please let me know. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Strange…those links should say next and previous. Have you tried reinstalling the theme via FTP?

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter scottparsons

    (@scottparsons)

    No luck yet. I tried all the above. I ftp’d a whole new wpfolio folder and emptied cache. Then I tried deactivating all plugins and emptied cache. Then I tried switching to the Twenty Eleven theme, but that causes all the Post-based menu items to disappear like “Studio Art” and “News,” so I couldn’t check. I then tried resetting the plugins folder by FTP and emptied cache.
    I sure appreciate the help, any other ideas? What can I do other than live with it? thank you!

    Switch to the Twenty Eleven theme and drop the number of posts per page to a low number via Settings -> Reading. That should generate some previous/next links.

    Thread Starter scottparsons

    (@scottparsons)

    The blog links work correctly in Twenty Eleven. Reactivating WPFolio (and emptying cache) and the blog links are still backwards. It must be something in WPFolio. Does anyone know where the code is for the blog links or other suggestions in WPFolio? Thanks again esmi.

    Go into index.php and around line 40 you’ll see:

    <div class="prevnext">
    	<div class="prev"><?php previous_posts_link('Previous') ?></div>
    	<div class="next"><?php next_posts_link('Next') ?></div>
    </div><!--.prevnext -->

    This is what the code is supposed to be – not sure how yours could have changed.

    Thread Starter scottparsons

    (@scottparsons)

    OK, mystery continues… the index.php does indeed match your code shown above. “Previous” and “Next” are working on the portfolio pages, it’s only on the blog page that things are mixed up now. My blog page has “News” as the category and it reads “Newer” for what is actually “Older” and vice-versa. Is there separate code for the blog page that I might look at, or?
    Thank you.

    Found it – in category.php you’ll see this on line 39 or so –

    <div class="prevnext"><div class="prev"><?php next_posts_link('Newer') ?></div>
    <div class="next"><?php previous_posts_link('Older') ?></div></div>

    replace it with the code I posted before.

    Thanks for catching this! We’ll definitely get it into the next release.

    Thread Starter scottparsons

    (@scottparsons)

    Now I’ve got “Previous” and “Next”!
    I think it was you who actually caught this! Good work.
    Quick question though, if I am on the most current page of my blog, shouldn’t and older page link say “Previous”? With this change, it says “Next.” Maybe I’m just thinking about this backwards now? On the next blog page it makes more sense, Previous means the previous page you were on.
    Thanks for all your help and a great template,
    Scott

    WordPress does things a little backwards – by default the older posts are linked on the left and newer posts on the right. There’s a popular plugin called WP-Paginate that gives you more flexibility with post navigation. Worth checking out. If you want to just change the wording, replace ‘Previous’ and ‘Next’ with what you’d like. But it would be more complicated if you want just the home page to say something different.

    Good luck! And I’m glad to have been of help ??

    Thread Starter scottparsons

    (@scottparsons)

    Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WPFolio – blog links are backwards: Newer is Older, Older is Newer’ is closed to new replies.