Title: pass URL variable in link
Last modified: April 18, 2017

---

# pass URL variable in link

 *  [Colin](https://wordpress.org/support/users/phazerave/)
 * (@phazerave)
 * [9 years ago](https://wordpress.org/support/topic/pass-url-variable-in-link/)
 * I feel like this has to be there but i cant seem to find it in the documentation.
   
   I would like to create a button within each loop as such
 *     ```
       [loop type=post]
       <a href="http://www.foobar.com?variable=[field value]"> button text </a>
       [/loop]
       ```
   
 * The result obviously does not work.
    Clearly you have most link issues resolved
   by using the [link] shortcode, but it does not appear to offer this feature, 
   either that or I am just blind haha. would be REALLY nice to have this option.
   Thanks!
    -  This topic was modified 9 years ago by [Colin](https://wordpress.org/support/users/phazerave/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Colin](https://wordpress.org/support/users/phazerave/)
 * (@phazerave)
 * [9 years ago](https://wordpress.org/support/topic/pass-url-variable-in-link/#post-9046441)
 * oh nice! I figured out if I use ‘these’ instead of “these” it works perfectly.
   nevermind!
 *  [paytogo](https://wordpress.org/support/users/paytogo/)
 * (@paytogo)
 * [9 years ago](https://wordpress.org/support/topic/pass-url-variable-in-link/#post-9128410)
 * [@colin](https://wordpress.org/support/users/colin/) I’m sitting with the exact
   same problem. I see that you figured it out, but the solution that you added 
   still has me puzzled. Can you elaborate?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘pass URL variable in link’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [paytogo](https://wordpress.org/support/users/paytogo/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/pass-url-variable-in-link/#post-9128410)
 * Status: not resolved