I have been trying to display next and previous page on my wordpress's custom post type. But the links are not generating. What I'm doing wrong?
Here is my code:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$video = array('post_type' => 'e_tv', 'posts_per_page' => 1,'order' => 'ASC', 'paged' => $paged);
$tv_query = new WP_Query($video);
while ($tv_query->have_posts()) : $tv_query->the_post();
?>
<!--video1-->
<section class="e_tv">
<h4><?php the_title()?></h4>
<?php the_content(); ?>
</section>
<!--/video1-->
<?php
endwhile;
?>
<div class="e_sep"></div>
<section class="e_nxtprev">
<div class="e_next"><?php previous_posts_link('%link', 'PREVIOUS PAGE', $tv_query->max_num_pages) ?></div>
<div class="e_prev"><?php next_posts_link('%link', 'NEXT PAGE', $tv_query->max_num_pages) ?></div>
</section>
Your help is greatly appreciated!