Pass Username (or ID) in URL string dynamically (2 posts)

  1. andytford
    Posted 6 years ago #

    Does anyone know how I would create a URL to an external site that includes the username?

    For example, I have a link on a site that goes to a third party site, and in order to execute the handshake the URL also needs to contain the user's WP username:

    <a href="https://secure.website.com/login.php?user_id=username">Click here</a>

    -or, for user jsmith-

    <a href="https://secure.website.com/login.php?user_id=jsmith">Click here</a>

    I am also using this as a text widget in the sidebar if that makes any difference.

    Thanks to in advance. Your help is greatly apprecaited.

  2. jkpro1
    Posted 5 years ago #

    I would like to know how to do that too. Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic