<?php foreach (query_posts([
'posts_per_page' => 1,
'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1,
]) as $post): ?>
................
<?php endforeach; ?>
<?php
if (function_exists('wp_pagenavi')) {
wp_pagenavi();
}
?>