• Resolved lessthanweb

    (@lessthanweb)


    What if a theme author wants to use prev/next (the_posts_navigation() function) links for posts navigation? Or is there a new rule that only pagination should be used?

    REQUIRED: The theme doesn’t have post pagination code in it. Use posts_nav_link() or paginate_links() or the_posts_pagination or next_posts_link() and previous_posts_link() to add post pagination.

    https://www.ads-software.com/plugins/theme-check/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    What specific code do you want to use? Over the years, there have been so many ways to add this sort of thing that it checks for a variety of different methods.

    The current latest way in 4.1 is to use the_posts_pagination().

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    See, nobody tells me these things. I didn’t even know there was a new the_posts_navigation. Dangit.

    Hi

    i have a same issue and I have already used the code for pagination in my theme template. but i get the same error on theme check

    <p>REQUIRED: The theme doesn’t have post pagination code in it. Use posts_nav_link() or paginate_links() or the_posts_pagination or next_posts_link() and previous_posts_link() to add post pagination.</p>

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Update to the latest version of theme-check, which does indeed check for the_posts_navigation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘the_posts_navigation fails’ is closed to new replies.