[Resolved] replacing numbered pagination with next/previous

Home Forums Support [Resolved] replacing numbered pagination with next/previous

Home Forums Support replacing numbered pagination with next/previous

  • This topic has 3 replies, 1 voice, and was last updated 2 years ago by Raul.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1011719
    Jon

    Hi! Love the theme and so glad to be using it. Very clean, very easy to use.

    Question around pagination. I have a Post with multiple <! –nextpage –> values, so it paginates a single post. However it leads to 1 2 3 4 5 6 .. 15 for pagination.

    I researched it in the forum here, but haven’t found a solution.

    How would I replace the numbered pagination, to use next/previous instead?

    #1012101
    Jon

    I found the solution.

    I copied content-single.php over to my child theme, and then added

    ‘next_or_number’ => ‘next’

    to the array for printing out the paginated pages.

    #1012169
    Tom
    Lead Developer
    Lead Developer

    Glad you found the solution! Thanks for sharing it here 🙂

    #1632396
    Raul

    You can also add a hook after content with your code so that you have numbers and also prev and next 😉

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.