• 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

Missing Pagination on Custom Blog Home Page Template

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 › Missing Pagination on Custom Blog Home Page Template

This topic is: not resolved

Tagged: pagination

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by brettatkin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 11, 2016 at 2:41 pm #176251
    brettatkin
    Member

    Below is the code for my custom page_blog.php file I created. It doesn't have any post pagination. Under Settings > Reading, I have the "Blog pages show at most" set to 6 but the page is showing 10 as well. Is something wrong with my code and/or am I missing a hook. I tried the following and it didn't work:

    //* Add post navigation (requires HTML5 theme support)
    add_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );

    Thanks

    Brett

    (full page code)

    <?php
    
    //* Add the featured image after post title
    add_action( 'genesis_entry_header', 'foralles_grid' );
    function foralles_grid() {
    
    	if ( has_post_thumbnail() ){
    		echo '<div class="archive-featured-image">';
    		echo '<a href="' . get_permalink() .'" title="' . the_title_attribute( 'echo=0' ) . '">';
    		echo get_the_post_thumbnail($thumbnail->ID);
    		echo '</a>';
    		echo '<a href="' . get_permalink() .'" title="' . the_title_attribute( 'echo=0' ) . '">';
    		echo the_title( '<h2>', '</h2>' );
    		echo '</a>';
    		echo '</div>';
    	}
    
    }
    
    //* Remove the ad widget
    remove_action( 'genesis_before_loop', 'adspace_before_loop' );
    
    //* Remove author box
    remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
    
    //* Remove the post meta function
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    
    //* Remove the post info function
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    
    //* Force full width content layout
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    //* Remove the entry title (requires HTML5 theme support)
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    
    //* Remove the post content
    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    
    genesis();
    January 12, 2016 at 12:22 am #176274
    Brad Dalton
    Participant

    Check your WordPress settings.


    Tutorials for StudioPress Themes & WooCommerce.

    January 12, 2016 at 10:09 am #176301
    brettatkin
    Member

    !@#@#$!@$!@#, as soon as read this I remembered that this was set in the Theme Settings and not Settings > Reading for any pages using the Blog template. My custom category archive pages use the Settings > Reading setting.

    Why does Genesis overwrite this?

    Thanks!

    Brett

  • 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

© 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