• 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

Customize Magazine Pro Pagination

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 › Customize Magazine Pro Pagination

This topic is: resolved

Tagged: home page pagination, magazine

  • This topic has 4 replies, 4 voices, and was last updated 8 years, 4 months ago by quigs72.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 31, 2015 at 9:27 am #154260
    quigs72
    Member

    Hi Everyone - I'm running Magazine Pro on this site http://marriedinchicago.com and would like to customize my pagination at the bottom. The home page has 3 widgeted areas (top, middle and bottom), and the bottom one (More Articles and Vendor Lists) is where I want the pagination to work on.

    For the bottom widget I'm using the genesis sandbox featured content widget, which allows me to set up pagination. However, when you click "next page" you'll see that the first two widgets (Featured Article and Chicago Wedding Vendors) appear above the posts as well. I'd like the next page to just show the remaining posts and not the top and middle widgets.

    I noticed this site http://techeclipse.com is set up exactly how I want it to work, just not sure how they did it. Any ideas would be highly appreciated.

    Thanks!

    May 31, 2015 at 11:51 pm #154324
    Jason Weber
    Member

    Quigs:

    Try installing the WP-Paginate WordPress plugin.


    Webby’s WebPrezence
    National Center For Due Process

    June 1, 2015 at 12:32 am #154337
    Genesis Developer
    Member

    Edit your front-page.php file. there have a function "magazine_homepage_widgets()". you will modify the existing code of this function with my code.

    function magazine_homepage_widgets() {
    
      // Fix for the WordPress 3.0 "paged" bug.
      $paged = 1;
      if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); }
      if ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); }
      $paged = intval( $paged );
    
      if( $paged < 2 )
      	genesis_widget_area( 'home-top', array(
      		'before' => '<div class="home-top widget-area">',
      		'after'  => '</div>',
      	) );
      
      	genesis_widget_area( 'home-middle', array(
      		'before' => '<div class="home-middle widget-area">',
      		'after'  => '</div>',
      	) );
      }
    
    	genesis_widget_area( 'home-bottom', array(
    		'before' => '<div class="home-bottom widget-area">',
    		'after'  => '</div>',
    	) );
    
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    June 1, 2015 at 12:52 pm #154424
    Tom
    Participant

    WP-Paginate isn't going to help here as it doesn't know what the plugin has output nor where the archives are for the selected category/ies.

    Slight correction for the conditional:

    if( $paged < 2 ) {

    ... which works to cycle through pages with the plugin. I've not found a method to link to the (category or blog ) archive and offset the posts displayed by the number presented on the front page.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    June 2, 2015 at 9:56 am #154556
    quigs72
    Member

    Thanks for the help, it worked like a charm!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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