Community Forums › Forums › Archived Forums › Design Tips and Tricks › next page button does nothing – stuck in loop
- This topic has 8 replies, 3 voices, and was last updated 10 years, 5 months ago by dmcleod87.
-
AuthorPosts
-
October 20, 2013 at 8:35 pm #67922dmcleod87Member
hi,
my next page button at the bottom of the posts appears to do nothing when clicked-
http://influencer.dylanmcleod.net.au/
in saying that it goes to - http://influencer.dylanmcleod.net.au/page/2/
however it's still the same posts. click it again and it reloads the page. any ideas on how to fix this? i had some work done on the site via tweaky.com however i didn't notice the issue until after the work was completed so i can no longer contact the developer.
thanks in advance!
http://influencer.dylanmcleod.net.au/October 20, 2013 at 8:38 pm #67924dmcleod87Membershould also mention i've based the site on the genesis sample child theme.
October 21, 2013 at 8:39 pm #68125dmcleod87Memberanyone know how i can fix this?
October 21, 2013 at 9:37 pm #68128SummerMemberIs your front page using a custom template, or widgets?
Just guessing here, but it sounds like your loop might be missing the paged argument.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkOctober 21, 2013 at 9:39 pm #68129dmcleod87Memberhi summer,
page is a custom template. the 3 featured posts at the top are widgets. here is the code from the page template-
<?php /* Template Name: Widget Template Created for three featured widget section, by Iniyan-tweaky */ //Displaying posts on this page remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'iniyan_loop' ); /** * Remove default loop. Execute Custom Loop Instead. * * @author Greg Rickaby * @since 1.0.0 */ function iniyan_loop() { global $paged; $args = (array( 'order' => 'dsc', 'order_by'=> 'title', 'paged' => $paged, 'cat'=>'-14,-15,-16', 'posts_per_page' => 5 )); genesis_custom_loop( $args ); } //Featured Widgets add_action('genesis_before_content', 'iniyan_template'); function iniyan_template() { echo'<div id="tweaky-widgets">'; genesis_widget_area( 'featured-one', array( 'before' => '<div class="featured-one">', 'after' => '</div>', ) ); genesis_widget_area( 'featured-two', array( 'before' => '<div class="featured-two">', 'after' => '</div>', ) ); genesis_widget_area( 'featured-three', array( 'before' => '<div class="featured-three">', 'after' => '</div>', ) ); echo '</div>'; } genesis(); // <- everything important: make sure to include this.
October 22, 2013 at 9:46 am #68204eamonmoriartyParticipantAlso, what I think is worse is that your 'Home' button throws a 404 error. It seems to point to http://theinfluenceronline.com/
You would need to check your menu items and perhaps your permalinks.
Eamon Moriarty
EM DzineOctober 22, 2013 at 9:55 am #68209SummerMemberI think your "order" parameter is wrong... it should be 'DESC' instead of 'dsc', but everything else in that loop should be fine.
Is this code in a home.php template, or are you using this in a static front page template?
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkOctober 22, 2013 at 3:28 pm #68286dmcleod87Memberthanks summer. updated the code but still doesn't work. i'm getting in touch with the developer via tweaky.com so hopefully he can fix it.
eamonmoriarty - i've got it pointing to http://theinfluenceronline.com/ as that is the live domain the site will eventually end up on.
November 8, 2013 at 11:33 pm #71827dmcleod87Memberanyone have any idea what i'm doing wrong here?
i tried contacting the developer i hired to implement this but he said because i signed off on the changes it's not his problem anymore. i only noticed the issue after i accepted the changes...
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.