WP-PageNavi is showing the first page only
I am using WP-PageNavi plugin, which I incorporated into my custom tpl page. There is woocommerce shortcode which holds all the products that I want to display, but I only ever see the same ones and only one page results. I do not see what am I doing wrong. The code is:
?php
/* Template Name: shine*/
?
?php get_header(); ?
div class="wrapper clearfix"
?php $args = array(
'post_type' = 'page',
'orderby' = 'title',
'order' = 'ASC',
'posts_per_page' = 5,
'paged' = get_query_var('paged'),
); ?
?php query_posts($args); ?
?php if ( have_posts() ) : ?
?php while ( have_posts() ) : the_post(); ?
?php endwhile; ?
?php endif; ?
h2SHINE kolekcija/h2
?php
echo do_shortcode( '[product_attribute attribute="kolekcije" filter="shine"]' );
?
div class="naviButs"
?php wp_pagenavi(); ?
/div
/div
?php get_footer(); ?
Topic plugin-wp-pagenavi php pagination Wordpress
Category Web