How to display a public profile page for registered users with custom slug?

I have a website where users can register, login and their edit profile, they can comment but not post. What I am looking for is a way to display a user profile page (where I display the gravatar and the info about the user) clicking on the username. The url must be something like “www.mywebsite.com/user/username”. … Read more

Use author author display name in permalink structure for pages and posts

I need to add the author name as a subdirectory prefix for all user’s posts and pages. For example: example.com/johndoe/ //The author page for John Doe example.com/johndoe/category/test-post/ //Test post by user John Doe example.com/johndoe/test-page/ //Test page by user John Doe If I change the permalink structure to: /%author%/%category%/%postname%/ this works fine for displaying a user’s … Read more

Change author permalink

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. 3 s 3 you need 3 simple functions and hooks first change the author base: //change author/username base to users/userID function change_author_permalinks() { global $wp_rewrite; … Read more

Woocommerce: assign an “author” to a product

I’m developing my first theme for woocommerce. I need to be able to have “authors” (really “designers”) assigned to woocommerce products. Is that feasible? I was thinking of using the wordpress built-in “author” user, but the interface of a product editing does not provide the “author” box, unlike a “post” editing interface. 1 1 Simply … Read more