[resolved] Urgent help needed ! (3 posts)

  1. devrimg
    Posted 4 years ago #

    Hello everyone,

    How do we create a URL that pulles the current users id?
    e.g. tittle 'Profile' link; .com/profile/username ?

    Should be something like <a href="<?php echo wp_user_id(user_url()); ?>"" rel="nofollow" title="<?php _e('TITLE'); ?>"><?php _e('TITLE'); ?></a> if im right but I don't know.

    Would be over the moon if someone helped!

  2. RichardWPG
    Posted 4 years ago #

  3. devrimg
    Posted 4 years ago #

    Thanks for you reply Richard, I've resolved it :)

    For people who might be looking for this (I linked it to bbpress user profile, within wordpress would be different);

    I used: <a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" class="submit user-submit"> Profile </a>

Topic Closed

This topic has been closed to new replies.

About this Topic