The original urls for users look like /author/login/
Is it possible to replace login by user's id?
In my dream urls should become to /users/34/ (34 is user id).
Thanks.
|
The original urls for users look like Is it possible to replace login by user's id? In my dream urls should become to Thanks. |
|||
|
|
you need 3 simple functions and hooks first change the author base:
then add users to query_vars:
then add the new rewrite rule:
Now if you don't know how to use this, just copy all of the code and paste in your theme's functions.php file. |
|||||||||||||
|
|
You could use an htaccess rule to rewrite /users/34 to /?author=34 |
|||
|