I have created a new wordpress site. In the single post view I want a previous and a next button to navigate the other single post. here is the single.php page code I am using.
<?php get_header(); ?>
<?php the_title(); ?>
<div class="news_article_holder">
<div class="news_art_cont">
<ul id="anyslider">
<?php if(have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<li>
<div class="news_art_1"> <a href="<?php the_permalink(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/star.png" width="60px" class="news_star" alt="">
<h1>
<?php the_field('news_title'); ?>
</h1>
</a> <img src="<?php the_field('news_image_large'); ?>" alt="">
<section>
<?php the_content(); ?>
</section>
</div>
</li>
<?php endwhile; ?>
<?php else : ?>
<h3>
<?php _e('404 Error: Not Found'); ?>
</h3>
<?php endif; ?>
</ul>
</div>
</div>
<!--news_article_holder ends here-->
<?php get_footer(); ?>