i made a page for showing posts but the pagination doesn’t appear(1,2,3,etc..)
This is the code:
<div class="browse-content">
<div class="container">
<h2><?php echo wp_count_posts()->publish; ?> Movies Found</h2>
<section>
<div class="row">
<ul>
<?php
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array(
'posts_per_page' => 3,
'paged' => $paged
);
$the_query = new WP_Query( $args );
?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<?php include '_includes/items/item_2.php';?>
<?php endwhile; wp_reset_postdata();?>
</ul>
</div>
</section>
<div class="pagination"><?php novavideo_theme_pagination(); ?></div><!-- .pagination -->
</div>
</div>
</div>
I searched everyhere but i did not found an answer…
Can someone help me?
}
This is the code
Add this two lines to your theme’s function.php file and everything will get back to work:
I think the better way is using this plugin