How to use user wildcard in a custom path? I have configured my user path alias pattern as consultant/[user:name]. Now I need to have one custom path from my custom module as consultant/[user:name]/job. Here is my  code in hook_menu.

 $items['user/%user/job'] = array(
'title' =&gt; 'Apply for job',
'page callback' =&gt; 'job_application_page',   
'access arguments' =&gt; array('access content'),
'file' =&gt; 'job.pages.inc',
'type' =&gt; MENU_CALLBACK,


);

I want the url as follows

For user Joan the path should be consultant/joan/job. But this is not working, giving an 404 error page

Do I miss something? Please advise.
You've picked user_load as your wildcard's load function - that takes an ID, and loads a user object. Your requirement is to load by username, which will work differently. 

A function ending with _load doesn't exist for that, so you'll have to create your own:

$items['user/%MYMODULE_user_name/job'] = array(
...

function MYMODULE_user_name_load($name) {
  return user_load_by_name($name);
}