• Resolved Audiomonk

    (@audiomonk)


    All my posts have been re-ordered and display correctly when viewing the archives etc. But when I use the plugin, it is showing the next post as the previous one and vice versa. I used the plugin re-order posts to get them in the right order.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jo4nny8

    (@jo4nny8)

    @audiomonk
    Wp Post Nav uses built in WordPress functions for fetching the next and previous posts based only on DATE order in admin.

    Any modifications you do to the post order via plugins will use their own system to order posts and at present this is unsupported in WP Post Nav.

    IF the issue is only that the next and previous posts are now sorted the wrong way, you can use the SWITCH DISPLAY option under general settings to reverse the sort order.

    Thread Starter Audiomonk

    (@audiomonk)

    Hi, I went ahead and bulk edited my posts to make sure that the first one I want to display had the most recent date. I then disabled the plugin to stop it’s sort method. I tried using switch display but when I click on the 1st post, it shows “previous” as the next post?

    So in summary, it’s using wordpress functions now the plugin is disabled, I’ve sorted posts so published date reflect newest to the first I want to show, but still not working as it should. Is there an email I can send a link to, I’d rather not put it here.

    Also, I thought switch display only moved the positions of the next/previous not change the sort order?

    Thread Starter Audiomonk

    (@audiomonk)

    For a bit extra information, the posts go like this (in the admin area for this category)

    Story 1 (newest publishing date)
    Story 2 (second newest etc)
    Story 3
    Story 4

    So when I click Story 1, it shows only previous (instead of next) as Story 2. If I click on Story 2 it shows next as Story 1(should be previous) and previous as Story 3 (should be next) etc.

    Hope this makes some kind of sense.

    Plugin Author Jo4nny8

    (@jo4nny8)

    @audiomonk Yes

    Please send an email to [email protected] with a link to your site so I can see whats happening on there.

    Can you also take a screenshot of the posts page in wp admin with the posts sorted in date order so I can see the posts and what is meant to be next and previous.

    Thanks

    Plugin Author Jo4nny8

    (@jo4nny8)

    @audiomonk

    Ok so I think I understand now from your example above and what youre describing is absolutely correct in what its meant to do.

    Let me explain.

    You have 5 posts sorted in date order (newest to latest)

    post 1 published today
    post 2 published yesterdaty
    post 3 published 2 days ago
    post 4 published 3 days ago
    post 5 published 4 days ago

    If you click post 1, there isn’t a next post (next would be a post published AFTER the current post) so it will only show the previous post as this is published previously to the current post.

    If you click post 2, the NEXT post is the post published AFTER this one – I/e post 1, and the previous post is the one published before this one (post 3)

    Does that make sense to you now?

    Thread Starter Audiomonk

    (@audiomonk)

    I think I got it now, so basically the oldest post needs to have the newest date? So I need to reverse the published dates in bulk? I’ll email you and show you what I mean.

    Really appreciate the help.

    Thread Starter Audiomonk

    (@audiomonk)

    Decided just to go ahead and try it, it worked, but my archives were all in the wrong order, so I just found a small plugin that reversed the order of the archives. Thanks for taking the time to explain. I guess in most cases the sort order showing the most recent post works, but navigating next and previous gets complicated when you’re showing historical context.

    Thanks again.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Next and Previous wrong way round’ is closed to new replies.