pagination post in a page not working
-
Hi , I try to use the plugin wp-pagenavi with a loop pagination
And this don’t working
Please help me
My code is
<?php /* Template Name: Propiedades */ ?> <?php get_header(); ?> <!--BEING .page-header --> <div class="page-header"> <h1 class="page-title">Propiedades Destacadas</h1> <!--END .page-header --> </div> <!--BEGIN #primary .hfeed--> <div id="primary" class="hfeed full-width"> <!--BEGIN .hentry--> <div class="post-6 page type-page status-publish hentry"> <!--BEGIN .entry-content --> <div class="entry-content-2"> <div class="zilla-one-half"> <?php query_posts("posts_per_page=3&paged=" . get_query_var('paged'));?> <?php if (have_posts()) : while (have_posts()) : the_post();?> <?php the_post_thumbnail('thumbnail'); ?> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <ul> <li><strong>Precio:</strong> $ <?php echo get_post_meta($post->ID, "precio", true); ?></li> <li><strong>Mts 2:</strong> <?php echo get_post_meta($post->ID, "metros", true); ?></li> </ul> <?php endwhile; endif;?> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div> <div class="zilla-one-half zilla-column-last"> <h3>Buscador personalizado</h3> <?php echo do_shortcode('[wp-custom-fields-search]'); ?> <span>H??ganos llegar su solicitud de propiedad </span><br> <span>a nuestra casilla de contacto <a href="https://www.asas.cl/contacto/">[email protected]</a></span> </div> <div class="clear"></div> </div> <!--END .hentry--> </div> <!--END #primary .hfeed--> </div> <?php get_footer(); ?>
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘pagination post in a page not working’ is closed to new replies.