Ready to get started?Download WordPress


Post Types Order
[resolved] Next Link For Last Record Does Not Go To First Record (3 posts)

  1. benners_
    Posted 1 year ago #

    When clicking the Next link on the last record for my custom post types (non-hierarchical) it does not go to first record but instead goes to the record with the next closest publish date to the last record.


  2. nsp-code
    Plugin Author

    Posted 1 year ago #

    The next / previous post link can create problems in certain scenarios as there aren't to many options to filter those 2 functions, i recommend to separate create a list of posts and extract next / previous one.
    Or if you own the Advanced Post Types Order you can use the previous_post_type_link() and next_post_type_links() which will return the exact order you specified for a given area (archive, category / term etc). You may want to check with the following links

  3. benners_
    Posted 1 year ago #

    Thanks for the reply. Not sure what you mean by

    create a list of posts and extract next / previous one

    could you clarify please? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic