Thank you for your answer, but it doesn’t work on my website.
If I comment the line 124:
'offset' => $offset
it doesn’t change anything.
I looked at the code and I noticed this :
$paged = get_query_var('paged');
returns int(0)
, that’s normal because we are on a template page
$paged = get_query_var('page');
returns string(0)
, that’s not normal…
Then, the URL mywebsite.com/page/2
still redirect me to mywebsite.com
, BUT if I use mywebsite.com?page=2
, everything works fine.