• 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 not working in Genesis Framework

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 not working in Genesis Framework

This topic is: not resolved

Tagged: custom loop, front page

  • This topic has 2 replies, 3 voices, and was last updated 4 years, 4 months ago by James.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 9, 2021 at 4:24 am #502971
    annahernandez99
    Participant

    I am using Genesis Framework on my WordPress website. I have tried different methods shared in Stackoverflow, but they haven't solved the issue.

    I have also tried flushing the permalinks.

    The issue occurs only on my homepage and the default archive pages are working fine. I have created a home.php file and created a custom genesis loop. The code is as follows.

    //Creating New Loop
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'payuoc_do_custom_loop' );

    function payuoc_do_custom_loop() {
    global $paged;

    $args = array(
    'post_type' => 'tracks',
    'posts_per_page' => 24,
    'paged' => get_query_var( 'paged' )
    );
    genesis_custom_loop($args);
    }

    Any suggestions to fix this?

    February 9, 2021 at 5:13 am #502972
    AnitaC
    Keymaster

    URL to your website and what theme are you using? Most pagination will not work on the home page depending on how the home page was created.


    Need help with customization or troubleshooting? Reach out to me.

    February 11, 2021 at 7:50 pm #503014
    James
    Participant

    Hi there

    By default, if you have the latest posts set as the home page (not a static page) then you should get pagination with no problem.

    But if you set a static page as the home page, then the home.php isn't applied, therefor your edits to the home.php won't work.

    You'll need a complete custom loop with pagination. Here is an example of one to get started. You'll need to create a front-page.php and build the custom loop in there to look and function with your site.

  • 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

© 2025 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