• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Pagination Options?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Pagination Options?

This topic is: not resolved

Tagged: archive pagination, genesis_numeric_posts_nav

  • This topic has 2 replies, 3 voices, and was last updated 9 years, 3 months ago by blacklion.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 8, 2016 at 11:25 am #194381
    officethug
    Participant

    I am using Numeric pagination on my content archives and I want to display all page buttons.

    It currently displays like this:
    1 2 3 … 7 Next Page »

    How do I replace the ellipsis with the actual numbers so it displays all pages like this:
    1 2 3 4 5 6 7 Next Page»

    Thanks!

    October 8, 2016 at 2:45 pm #194383
    Brad Dalton
    Participant

    The only filters there are for the text so you would need to remove the default function starting on line 688 of genesis > lib > structure > post.php

    genesis_numeric_posts_nav
    

    and add a custom function back with the code changes to show all page numbers using the following hook.

    add_action( 'genesis_after_endwhile', 'genesis_posts_nav' );
    /**
     * Conditionally echo archive pagination in a format dependent on chosen setting.
     *
     * This is shown at the end of archives to get to another page of entries.
     *
     * @since 0.2.3
     */
    function genesis_posts_nav() {
    
    	if ( 'numeric' === genesis_get_option( 'posts_nav' ) )
    		genesis_numeric_posts_nav();
    	else
    		genesis_prev_next_posts_nav();
    
    }
    

    The default function outputs 2 pages in either direction if necessary.


    Tutorials for StudioPress Themes.

    October 19, 2016 at 2:59 pm #195063
    blacklion
    Member

    Maybe you guys can help me.

    Currently, the pagination can only skip 2 pages forwards or backwards.
    - Like this... "1 2 3...25"
    - And if you're in the middle... "1...4 5 6 7 8...25"

    Is there anyway I can make it skip up to 3 pages forwards or backwards? (I find being able to skip only 2 at a time almost defeats the convenience of pagination.)
    - I want this... "1 2 3 4...25"
    - And then this if I'm in the middle... "1...3 4 5 6 7 8 9...25"

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble