Currently, WordPress supports author name in the post permalink by using %author%.
Is it possible to add the author id to the permalink?
For example, changing this:
http://www.site.com/john/my-first-post
to this:
http://www.site.com/1/my-first-post
Where ‘1’ is the id of the author ‘john’.
You can do this with a couple of filters:
Now, go to Settings → Permalinks and set your permalinks settings to
/%author%/%postname%/
. Save your changes, and your links should be working accordingly. Let me know if you have any issues!