how can I remove a parameter from a URL in wordpress? for example if I have the following URL: http://domain.com/?cat=4&paged=2&order=DESC
How can I remove paged from it?
Leave a Reply
You must be logged in to post a comment.
how can I remove a parameter from a URL in wordpress? for example if I have the following URL: http://domain.com/?cat=4&paged=2&order=DESC
How can I remove paged from it?
You must be logged in to post a comment.
You should use pretty permalink. Please read this docs from WordPress Codex for full information.
Using remove_query_arg() to remove query string from the URL.
For example, to remove the
paged
query string from the current page URL:If you have specific URL:
Or if you have multiple query string and you wanted to remove them: