-
Hello everybody,
I figured out, that the pagination doesn’t work on all archive pages.
So I searched in the Code for the answer.
In the file “archive.php” you call this to get the max number of pages:$additional_loop = new WP_Query('paged='.$paged ); $page=$additional_loop->max_num_pages; echo kriesi_pagination($additional_loop->max_num_pages); wp_reset_query();
This is completely unnessesary and only generates page load time!
I had to override the whole page in my child theme.
Wordpress already calls the WP-Query-Function so the Theme must not do this.My Fix for this issue:
global $wp_query; echo kriesi_pagination($wp_query->max_num_pages);
Please fix this error.
Thank You for your answer.
-
Please use the search before making a post. Your question maybe be already answered!
-
Do you need customization work? Are you having trouble installing Wordpress? Feeling lazy and want somebody else to do the hard work for you?
Join our discord!
Need hosting?
Follow us!