I am new in wordpress and I would like to know if there is a way to add a username in a permalink of the wordpress.
The permalink is like this
http://myname.com/memberpage
and I would to add a username in the permalink like this
http://myname.com/username/memberpage
You can change your URL using this link Please check this link .
http://www.wpbeginner.com/plugins/how-to-change-author-url-slug-and-base-in-wordpress/
You can give the custom url by yourself. In your case you can do something like this <?php echo get_site_url().'/'.<username>.'/memberpage' ?>
Where you can get the current username and other info using <?php get_currentuserinfo(); ?>
<?php get_currentuserinfo(); ?>
see this link https://codex.wordpress.org/Function_Reference/get_currentuserinfo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.