Below is a snippet of code that appears on one of my pages called: Featured. I created a template and then respectively created a page and activated the template in the wp-admin. However when I click the button to paginate to page 2, which looks something like: http://example.com/featured/page/2 the next page shows up blank with no content (and I have plenty of content in the respective categories to display.) Any ideas what could be wrong here? Let me know if you need further clarification with my issue and/or code.
All Features
<!-- Featured Loop -->
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'post_type'=> 'post',
'category_name' => 'featured-content, podcast',
'posts_per_page' => 10,
'paged'=> $paged
);
$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query($args);
if (function_exists('wp_pagenavi')) { wp_pagenavi(); }
if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('featured'); ?>
</a>
<div class="meta">
<p class="title"><?php the_title(); ?></p>
<br>
<p class="author">By <?php the_author(); ?></p>
</div>
</article>
<!-- /Featured Loop -->
<?php endwhile; endif; ?>
<!-- /Featured Loop -->
<!-- Older/Newer Pagination -->
<?php if ($wp_query->max_num_pages > 1) : ?>
<?php next_posts_link( __( '<span class="arrow">←</span> Older' ) ); ?>
<?php previous_posts_link( __( 'Newer <span class="arrow">→</span>' ) ); ?>
<?php endif; ?>
<!-- /Older/Newer Pagination -->
<?php
/* PageNavi at Bottom */
if (function_exists('wp_pagenavi')){wp_pagenavi();}
$wp_query = null;
$wp_query = $temp;
wp_reset_query();
?>
<!-- /Featured Loop -->
