WordPress.org

Ready to get started?Download WordPress

Forums

link_pages First, Numbers AND Last links (2 posts)

  1. foolfillment
    Member
    Posted 8 years ago #

    Is there a way to improve the navigation of paginated posts? I'd like it to look like this:

    First | Previous | 7 | 8 | 9 | 10 | Next | Last

    I can only get it to show either previous/next links or links to each page. Even a list of all pages with a link to next/prev would be an improvement.

    Thanks in advance.

  2. AndyBateman
    Member
    Posted 7 years ago #

    Use the code

    <?php link_pages('<p>Pages: ', '', 'next', '', '&laquo; ');link_pages('', '', 'number');link_pages('', '</p>', 'next', ' &raquo;', ''); ?>

    This will produce a pretty:

    Pages: « 1 2 3 »

    Is that what youd like?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags