Custom user profile URLs

  1. Create an endpoint for EP_ROOT named profile.
  2. In your callback handler use get_user_by( 'slug', get_query_var( 'profile' ) ) to find the user data.
  3. Create a template file profile.php and use locate_template( 'profile.php', TRUE ) to load it.
  4. In your template show the user data.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)