Community Forums › Forums › Archived Forums › Design Tips and Tricks › Home page pagination not working – Magazine Pro
- This topic has 10 replies, 2 voices, and was last updated 9 years, 11 months ago by jourdain.
-
AuthorPosts
-
May 12, 2014 at 4:18 pm #104755jourdainMember
Hi guys, here is the situation.
I wanted pagination on my magazine pro homepage so I added this plugin. "genesis featured widget amplified".
Everything seems good with the plugin but for some reason I cant get the homepage pagination to work. The pagination shows up at the bottom but when the second page is clicked it just reloads the homepage.
I have played around with the widget settings but nothing I tried worked, so I have turned to the forum of knowledge! 🙂
I have attached the setting from the widget below.
Anyone have any ideas?
Thanks to all replies in advance.
Jourdain
http://creativefreaks.co.uk/May 12, 2014 at 8:07 pm #104821Brad DaltonParticipantMay 13, 2014 at 12:08 am #104861jourdainMemberIf I deactivate the plugin then there is no pagination.
May 13, 2014 at 1:08 am #104865Brad DaltonParticipantMay 13, 2014 at 5:32 am #104878jourdainMembergenesis featured widget amplified de-active - If I deactivate the plugin then there is no pagination on the homepage. It will display the first 10 items then there will be no entries. The pagination numbers do not show up at the bottom of the page.
genesis featured widget amplified active - If I activate the plugin then the pagination shows at the bottom of the page but there is no functionality when page 2 or the next button is clicked.
I don't mind how I get there but I would like to have pagination active on the homepage. The first 10 entries to be displayed then 10 more on each of the pages clicked through.
thanks again for your help Brad
May 13, 2014 at 8:00 am #104905Brad DaltonParticipantReally don't know how to help with this however i have seen this problem many times on Stackexchange when people create custom loops using WP_Query.
http://wordpress.stackexchange.com/search?q=pagination+not+working
May 13, 2014 at 3:33 pm #104975jourdainMemberIn Settings > Reading I had "A static page" selected. I had to change it to "Your Latest Posts".
Such a simple solution. I am kicking myself.
Anyway, thanks again for investing your time brad I will be sure to have a little feature on my site to the people who helped me create it!
oh... I do have one last question. Can I remove the featured widget from page 2 of the home page? I have done it on all the other featured widgets but I am not to sure how to tackle this one.
You have helped me with this before, link: http://www.studiopress.community/topic/help-with-coding-magazine-pro/
Thanks again.
May 13, 2014 at 7:08 pm #105015Brad DaltonParticipantUse that solution you linked to and add the conditional after the function for the featured widget.
! is_paged()
Or try this http://wpsites.net/web-design/add-widget-before-posts-on-first-page-of-loop/
May 14, 2014 at 4:45 pm #105172jourdainMemberI have tried playing around with the is_paged but to no avail. here is what the code currently looks like.
* Add widget support for homepage. If no widgets active, display the default loop. * */ function magazine_home_genesis_meta() { if ( is_active_sidebar( 'home-top' ) && ! is_paged()|| is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-bottom' ) ) { // Force content-sidebar layout setting add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' ); // Add magazine-home body class add_filter( 'body_class', 'magazine_body_class' ); // Remove the default Genesis loop remove_action( 'genesis_loop', 'genesis_do_loop' ); // Add homepage widgets add_action( 'genesis_loop', 'magazine_homepage_widgets' ); } }
I have tried different variations of is_paged but to no avail. ( I really should start learning PHP). If you could spare a little time for common newbie that be amazing!
Jourdain
May 14, 2014 at 8:37 pm #105201Brad DaltonParticipantOr try this http://wpsites.net/web-design/add-widget-before-posts-on-first-page-of-loop/
Try the Alternative Method.
May 15, 2014 at 4:29 pm #105379jourdainMemberThanks for the pointers Brad, I have it working now. 🙂
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.