1
I’m doing the index of a site and in it I do a search of the posts, alias several searches, and the last one has pagination that is the last posts registered.
I’m doing the consultation as follows:
<?php query_posts(array('posts_per_page' => 2, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), 'meta_query' => array(array('key' => 'destaque', 'value' => 'on', 'compare' => 'NOT EXISTS')))); ?>
There after the while I lay:
<?php echo paginate_links(); ?>
it shows the two posts of the page and the links of the pagination, but it goes to 404. What can be?
there is a Stack Exchange only for wordpress ! http://wordpress.stackexchange.com/
– FernandoNomellini