Community Forums › Forums › Archived Forums › General Discussion › Customize Magazine Pro Pagination
Tagged: home page pagination, magazine
- This topic has 4 replies, 4 voices, and was last updated 11 years ago by
quigs72.
-
AuthorPosts
-
May 31, 2015 at 9:27 am #154260
quigs72
MemberHi 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 #154324Jason Weber
MemberJune 1, 2015 at 12:32 am #154337Genesis Developer
MemberEdit 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>', ) ); }
June 1, 2015 at 12:52 pm #154424Tom
ParticipantWP-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 #154556quigs72
MemberThanks for the help, it worked like a charm!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.