blog navigation

Closed
Panagea - Hotel and Tours Booking WordPress Theme Panagea - Hotel and Tours Booking WordPress Theme January 23, 2019
Login to reply
HyunKi Kim
5 years ago
Resolved.
HyunKi Kim
5 years ago

thank you!

resolved.

Kelly R Support Agent
5 years ago

Hi,

Panagea theme has not feature.

Please add following code in /functions.php file.

if ( ! function_exists( 'panagea_post_pagination' ) ) {

 function panagea_post_pagination() {
  global $post;

  $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );
  $next = get_adjacent_post( false, '', false );

  if ( ! $next && ! $previous ) {
   return;
  }

  ?>

  <div class="post-pagination">
   <nav role="navigation" class="single-post-navigation">
    <div class="nav-previous">
     <?php previous_post_link( '%link', '<i class="fa fa-angle-left"></i> <div class="post-title"> <div class="nav-title">' . __( 'Previous Reading', 'panagea' ) . '</div> <span> %title </span></div>' ); ?>
    </div>

    <div class="nav-next">
     <?php next_post_link( '%link', '<i class="fa fa-angle-right"></i> <div class="post-title"><div class="nav-title">' . __( 'Next Reading', 'panagea' ) . '</div> <span> %title </span></div>' ); ?>
    </div>
   </nav>
  </div>

  <?php
 }
}

And then add following code in /single.php file.

echo panagea_post_pagination();

Regards, 

HyunKi Kim
5 years ago

Hi!

blog single post has not navigation(next & previous)? 

how can i use navigation?