I'm hoping someone can help me sort out a navigation issue I'm having with my website at SevenSharks.com
When I first designed my site, It had a custom static front page that was blank like a gateway page. I recently deactivated that page, and made the blog page the static front page. After making the change, my pagination stopped working correctly.
Clicking "Older" now only loads the same 8 posts (the 8 most recent posts) instead of cycling backwards through older posts.
Its really driving me crazy.
Here is the only relevant code as far as I know:
<?php
/**
* For get looping of blog.
*/
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'orderby' => 'date',
'order' => 'DESC',
'paged' => $paged,
);
$temp = $wp_query; // assign orginal query to temp variable for later use
$wp_query = null;
$wp_query = new WP_Query($args);
?>
<?php get_template_part('loop'); ?>
<?php $wp_query = $temp; wp_reset_postdata(); ?>