Modify default WordPress author base URL

By default WordPress author slug is – /author/[author_display_name]. How about if we need to change this to something else? Perhaps your site is not in English, and you want author slug in your language? This is very easily controllable with author_base property of WP_Rewrite class. Code goes in the functions.php… Read More »

Modify default WordPress pagination base URL

By default WordPress pagination slug is – /page/[page_number]. How about if we need to change this to something else? Perhaps your site is not in English, and you want pagination in your language? This is very easily controllable with pagination_base property of WP_Rewrite class. Code goes in the functions.php file… Read More »

Modify default WordPress search URL

By default WordPress search result page URL is a query parameter – ?s=[search_term]. Not a very “pretty” URL! But we can make it a nice “pretty” url with a little code snippet. Above code will make your search page url from https://careless.dev/?s=[search_term] to https://careless.dev/search/[search_term]. But /search/ is the default slug… Read More »