Title: having a &quot;variable&quot; hyperlink?
Last modified: August 21, 2016

---

# having a "variable" hyperlink?

 *  Resolved [gerard](https://wordpress.org/support/users/charismaarts/)
 * (@charismaarts)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/having-a-variable-hyperlink/)
 * Hey guys: struggling with a problem that I think should be easy but I cannot 
   figure it out…
 * I want to be able to have a hyperlink that is totally made up of variables; for
   example;
 * I have the url of the link to be stored in $url
    and I have the “text” of the
   hyperlink to be stored in $text
 * Does anyone know how I would write a html hyperlink that uses these variables?
 * Thanks,
 * G

Viewing 1 replies (of 1 total)

 *  Thread Starter [gerard](https://wordpress.org/support/users/charismaarts/)
 * (@charismaarts)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/having-a-variable-hyperlink/#post-3864982)
 * I figured this out; the solution was right before my eyes and if it was a snake
   it would have bit me!

Viewing 1 replies (of 1 total)

The topic ‘having a "variable" hyperlink?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [gerard](https://wordpress.org/support/users/charismaarts/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/having-a-variable-hyperlink/#post-3864982)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
