WordPress 5.5 breaks pagination in an older plugin
I am stuck having to use an older plugin, which is no longer maintained. The problem i’m facing is that in WordPress 5.5, the pagination that plugin uses, breaks. All you see is the first page.
This is de code for pagination it uses:
1)
{
$add_args = $data[‘search’];
unset($add_args[‘paged’]);
echo ” .
paginate_links(array(
‘total’ => $data[‘total_pages’],
‘current’ => $data[‘paged’],
// maybe include this: get_option(‘permalink_structure’)
‘base’ => rtrim(get_page_link(get_the_ID()), ‘/’) . ‘/%#%/’,
‘add_args’ => $add_args
)) .
”;
}
?>
I have found that changing the permalink structure in the WordPress settings has no effect on this error.
I found this information on permalinks: https://developer.wordpress.org/reference/functions/paginate_links/ , but I am unable to make it work.
How can I make pagination work in this plugin?
Leave an answer