Recently I added pagination to my site. Using paged param to WP_Query
and get_query_var('paged')
. For paginate links I'm using paginate_links()
with format ?paged=1.
Why Wordpress rewrites this format to /page/1? How to avoid that and leave pagination slug with query param and not like separate pages?
Fixed problem. Just changed query variable since page and paged variables are listed in query vars.