• jamo_dodger

    (@jamo_dodger)


    Hello,

    I am currently writing a post with over 30 pages and have used the nextpage tag to split the post up. I have used the following tutorial:

    https://www.velvetblues.com/web-development-blog/wordpress-number-next-previous-links-wp_link_pages/

    to add next and previous links to my post pagination however i now want to add a range to it as display 30 internal post links does not look pretty.

    I want it to look something like this:

    Prev 2 3 4 5 6 10 20 30 Next

    or maybe

    Prev 2 3 4 5 6 … 30 Next

    I have been searching online for an answer for days but no luck so far, please help.

    Thank you,

    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jamo_dodger

    (@jamo_dodger)

    I have looked at plugins such as WP-Navi and WP-Pagination but I cannot get these to work with wp_link_pages so if a plugin is the better/easier solution how can I use these with wp_link_pages?

    Thread Starter jamo_dodger

    (@jamo_dodger)

    Use Wp Navi plugin and replaced the wp_link_pages code in my content.php with

    <?php wp_pagenavi( array( ‘type’ => ‘multipart’ ) ); ?>

    and now it works fine

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a range to wp_link_pages’ is closed to new replies.