Wildcard link for user menu I have a dropping menu links for the user menu:

My account


Profile edit
My posts (track)
Exit


Here's an example of my code:

  &lt;ul id="userNavigation"&gt;
                &lt;li&gt;&lt;?php echo l(t("Profile edit"), "user/%/edit"); ?&gt;&lt;/li&gt;
                &lt;li&gt;&lt;?php echo l(t("My posts"), "user/%/track"); ?&gt;&lt;/li&gt;
                &lt;li class="exit"&gt;&lt;?php echo l(t("Exit"), "user/logout"); ?&gt;&lt;/li&gt;
            &lt;/ul&gt; 


I've tried with wildcard %. With a Views module was very easy, but in this case (without views) it's not working. 
Is any other way so when user clicks on "My posts" will link to user/user_id/track or profile edit that will lead to user/user_id/edit?
You cannot use menu wildcards like that. You need to use the following code.

  &lt;ul id="userNavigation"&gt;
    &lt;li&gt;&lt;?php echo l(t("Profile edit"), 'user/' . $GLOBALS['user']-&gt;uid . '/edit'); ?&gt;&lt;/li&gt;
    &lt;li&gt;&lt;?php echo l(t("My posts"), 'user/' . $GLOBALS['user']-&gt;uid . '/track'); ?&gt;&lt;/li&gt;
    &lt;li class="exit"&gt;&lt;?php echo l(t("Exit"), "user/logout"); ?&gt;&lt;/li&gt;
  &lt;/ul&gt;


The global $user is the user object for the currently logged-in user. Be careful: It is not a fully-loaded user object. If you need that, you should use the value returned from user_uid_optional_load().