Search code examples
wordpressurlpaginationpermalinks

Wordpress pagination behaviour


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?


Solution

  • Fixed problem. Just changed query variable since page and paged variables are listed in query vars.