Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: add $_GET to an href url

@boonebgorges

Keymaster

WP has a function add_query_arg() that works for this purpose. See https://codex.wordpress.org/Function_Reference/add_query_arg

You might also be able to save a bit of time (or at least make your code a bit shorter) by using paginate_links() https://codex.wordpress.org/Function_Reference/paginate_links

Skip to toolbar