• 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

Home page with blog template not paginating

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 › Design Tips and Tricks › Home page with blog template not paginating

This topic is: not resolved

Tagged: bug

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 4 months ago by galbaras.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 18, 2015 at 2:05 am #156630
    galbaras
    Participant

    I'm using a minimal child theme with Genesis. My front page is a page called Home, which uses the Blog template. My posts page is unset.

    This works great, except for pagination of the main blog archive, which keeps going back to the same list of posts. adding /page/2/ or ?paged=2 to home page URL just shows the home page again.

    Please advise.

    Thank you,
    Gal

    http://www.ronitbaras.com/
    June 18, 2015 at 6:32 am #156643
    Susan
    Moderator

    A static home page will not paginate by default. The recommendation is to set your home page to "display latest posts", and don't use a static home page.

    June 18, 2015 at 5:36 pm #156718
    galbaras
    Participant

    If I set the home page to display the latest posts, other things don't happen, like Jetpack sharing buttons won't work properly.

    The question is what to do to make a static home page paginate. The "Blog" template should be done in a way that takes this into account. Supposedly, that's exactly what it's meant to do - serve as the main blog page.

    June 21, 2015 at 10:12 pm #157095
    galbaras
    Participant

    OK, I've found the problem and ... (drum roll) ... it's a bug in genesis_do_loop(). There are 2 of them, actually.

    Line 30:

    $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;

    Should be:

    $paged = get_query_var( 'page' ) ? get_query_var( 'page' ) : 1; // "page", not "paged"

    Line 38:

    'showposts' => genesis_get_option( 'blog_cat_num' ),

    Should be:

    'posts_per_page' => genesis_get_option( 'blog_cat_num' ), // "showposts" is depracated

    If someone from the Genesis team is reading this, an update will be great. In the meantime, I've unhooked genesis_do_loop() and hooked in the correct code, so you can see the code in action on my site.

    Best regards,
    Gal

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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