Pagination broken in WP 4.1
-
The pagination in WP 4.1 is broken (trac ticket 30831)
A workaround has been implemented in Frontier Post version 3.0.5, where this has been added to the $pagination var:
“add_args” => falseMy tests shows that it works.
If you don’t want to upgrade to version 3.0.5, you can add the above to the pagination var in the bottom of the frontier_list_form.php (ver 3.0) or frontier_list (pre ver 3) located in the forms subdirectory of the Frontier Post plugin.
Code should now look like this:
$pagination = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', 'prev_text' => __( '?', 'frontier-post' ), 'next_text' => __( '?', 'frontier-post' ), 'total' => $user_posts->max_num_pages, 'current' => $pagenum, 'add_args' => false //due to wp 4.1 bug (trac ticket 30831) ) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Pagination broken in WP 4.1’ is closed to new replies.