posts_nav_link not working!
-
hi
here is my code:<?php /* Template Name: News */ get_header();?> <h1 class="title">news</h1> <div class="border"></div> <section class="page news col-md-11"> <?php $latest_blog_posts = new WP_Query( array( 'posts_per_page' => 1, 'cat' => 6 ) ); if ( $latest_blog_posts->have_posts() ) : while ( $latest_blog_posts->have_posts() ) : $latest_blog_posts->the_post(); ?> <div class="post"> <a href="<?php the_permalink(); ?>"> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> </a> <?php the_post_thumbnail( array(500, 500) ); the_content( sprintf( __( '(more)'), the_title( '<span class="screen-reader-text">', '</span>', false ) ) ); ?> </div> <?php endwhile; endif; ?> </section> <?php posts_nav_link(); ?> <?php get_footer(); ?>
but posts_nav_link() function not working!
sorry my english is poor.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘posts_nav_link not working!’ is closed to new replies.