So I hacked together a function that does the following:
protected function _query_post($query){
$original = $this->_wp_query;
$wp_query = new WP_Query($query);
if($wp_query->have_posts()){
while($wp_query->have_posts()){
$wp_query->the_post();
$this->_title($this->_options);
the_excerpt();
}
next_posts_link('« Older Entries');
previous_posts_link('Newer Entries »');
}
$wp_query = $original;
}
So it's not hard to tell what's going on - all were doing is displaying a list of posts that are queried. The query used here is:
'posts_per_page' => 20
This then created the following page (scroll down) with a a pagination at the bottom.
The problem is, try going through pages 1 - 5. The posts are all the same....At the bottom of the post I do a reset of the query.....
Any ideas?
formatparameter. – Max Yudin Feb 3 at 20:10formatvalue. Just follow the link. And there is some dirt in your code. adambalan.com/WordPressDev/?page=3 does not redirect to adambalan.com/WordPressDev/page/3, but adambalan.com/WordPressDev/?paged=3 do. – Max Yudin Feb 3 at 20:26