I would like to translate the unloaded portion of the URL, for example: currently: mysite.com/page/2 I would like to: mysite.com/p/2
Does anyone know a filter for this? Or would a custom rewrite be more appropriate? If so, how?
Thanks, Best regards.
OK add this code below to your theme theme.php file
and reset you always specify
add_action( 'init', 'my_custom_page_word' ); function my_custom_page_word() { global $wp_rewrite; $wp_rewrite->pagination_base = "p"; }
Thanks Manzurul
Source: https://habr.com/ru/post/1789339/More articles:Is the formatting correct? - visual-studio-2008mysql - how do I get a list starting with a letter and continue with the following letters? - mysqlHow can we embed artificial intelligence in javascript games? - javascriptStack-based maze exploration - c ++Best Practice for Progress Bar in Python PyGTK - pythonUsing spaces in URLs and .htaccess - url-rewritingResizing photos as thumbnails such as Flickr and Facebook photostreams? - facebookThe specified module could not find the error on the virtual machine hosting the website - asp.netHow can I determine if a 404'd site is in javascript and then redirect the browser to another location - javascript.net Rx: batch processing ok - c #All Articles