• 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

Problem with Front Page Pagination and Custom Post Types

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 › Problem with Front Page Pagination and Custom Post Types

This topic is: resolved

Tagged: custom loop, loop, pagination, query, template

  • This topic has 1 reply, 2 voices, and was last updated 6 years, 8 months ago by Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 26, 2016 at 7:00 pm #192112
    spamheat
    Member

    Hi all,

    I am trying to do a static front page with a template using Genesis. Everything seems to be displaying fine except pagination. When one goes to page 2, it displays the same posts as page 1, and then does not go further to page 3. Below is the "simple" template design I was working with and I am not very experienced with the query yet. Thanks for any help you can offer.

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'my_custom_loop' );
    
    function my_custom_loop() {
    global $paged;
    
    	 $args = ( array(
    		'post_type' => array('post', 'news', 'statement'),
    	 	'post_status' => 'publish',
    		'paged'  =>   $paged,
    	 	'posts_per_page' => 2,
    	) );
    
    genesis_custom_loop( $args );
    }
    
    genesis();
    September 30, 2016 at 10:03 am #193986
    Susan
    Moderator

    I am closing this, as you have marked it "resolved". If you are still having issues, please go ahead and start a new thread.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Problem with Front Page Pagination and Custom Post Types’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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