Title: Variable data in Button Link.
Last modified: August 24, 2016

---

# Variable data in Button Link.

 *  Resolved [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/)
 * Hi
    I know you can modify the link on a button by using this type of entry [wpi_designer_button
   id=12 link=”[http://google.com”%5D](http://google.com”%5D) At present I have 
   various events that have varying affiliation URL links. So I am having to go 
   into each page I set up and amend the link as shown above. The idea I had was
   that I am already capturing a custom attribute {eurl) on each page. My thought
   was if this attribute could be loaded into my button Via WPi Button design a 
   button . In the style settings you are able to specify only a single url. My 
   thought was that if I could insert my attribute in this area my custom button
   would look at the page it is on and the {eurl} attribute that is on it. And therefore
   be direct to the correct url. Is that possible?
 * [https://wordpress.org/plugins/wpi-designer-button-shortcode/](https://wordpress.org/plugins/wpi-designer-button-shortcode/)

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

 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6140805)
 * Hi grouchmaxweb,
 * Please give some examples links with variations in eurl.
 * Regards,
 * PRALI
 *  Thread Starter [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6140837)
 * [wpi_designer_button id=’1744′ link=”[http://www.simplyparanormal.co.uk/collections/paranormal-events/products/bodmin-jail-cornwall-friday-18th-december-2015?aff=3″%5D](http://www.simplyparanormal.co.uk/collections/paranormal-events/products/bodmin-jail-cornwall-friday-18th-december-2015?aff=3″%5D)
   [
   wpi_designer_button id=’1744′ link=”[http://www.simplyparanormal.co.uk/collections/paranormal-events/products/newsham-park-mental-hospital-liverpool-merseyside-saturday-19th-december-2015?aff=3″%5D](http://www.simplyparanormal.co.uk/collections/paranormal-events/products/newsham-park-mental-hospital-liverpool-merseyside-saturday-19th-december-2015?aff=3″%5D)
   it would great if it could be something like [wpi_designer_button id=’1744′ link
   =”eurl”] Thanks for looking at it
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6140850)
 * Hi grouchmaxweb,
 * Thanks for give info in detail.
 * I understood the task.
 * In next version of designer button i will add this feature.
 * Regards,
 * PRALI
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141023)
 * Hi grouchmaxweb,
 * Now you can do as you like!!
 * Update the Designer Button Plugin.
    Use any POST or GET variable in the Button
   text or Button Link like your requested below formatting.
 * `[wpi_designer_button id='1744' link="http://www.simplyparanormal.co.uk/collections/
   paranormal-events/products/bodmin-jail-cornwall-friday-18th-december-2015?aff
   ={variable}"]`
 * I hope you will be happy with this feature.
 * Thanks & Regards,
 * PRALI
 *  Thread Starter [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141031)
 * Hi Prali
    I am not sure if I can do what I was thinking. The url itself is the
   variable ="[http://www.simplyparanormal.co.uk/collections/paranormal-events/products/bodmin-jail-cornwall-friday-18th-december-2015?aff=](http://www.simplyparanormal.co.uk/collections/paranormal-events/products/bodmin-jail-cornwall-friday-18th-december-2015?aff=){
   variable}"]. I cannot seem to get it working. I thought that the entry would 
   look like
 * [wpi_designer_button id=1744& link=[Link](https://wordpress.org/support/topic/variable-data-in-button-link/variable attribute name?output_format=md)
 * Sorry to be so vague as I have very little coding experience Many Thanks for 
   looking at it Colin
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141033)
 * Hi Colin,
 * Everything is possible. and i will solve this issue ASAP.
 * Tell me how can i support you in this issue.
 * Regards,
 * PRALI
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141034)
 * Hi Colin,
 * To get complete your task do like below sample code::
 * Shortcode :: `[wpi_designer_button id=336 link={link}]`
 * Demo::
 * Open this link [http://designerbutton.prali.in/showcase-buttons/?link=http://google.com](http://designerbutton.prali.in/showcase-buttons/?link=http://google.com)
 * Check first blue Button with text “Sample”. in above page.
    Click on that sample
   button.it will open google page.bcoz i placed google page url in link attribute
   of shortcode.
 * Next change it to below url
    ——————— [http://www.simplyparanormal.co.uk/collections/paranormal-events/products/bodmin-jail-cornwall-friday-18th-december-2015?aff=3](http://www.simplyparanormal.co.uk/collections/paranormal-events/products/bodmin-jail-cornwall-friday-18th-december-2015?aff=3)————————————
 * and check again.
 * If anything let me know.
 * Regards,
 * PRALI
 *  Thread Starter [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141049)
 * Hi Prali. Thanks
    I got your example working fine. However still struggling to
   make it work on my site. Do I take i it your {link} is your name for that custom
   field and I substitute my custom field {eurl} if so I have tried that and it 
   doesn’t seem to pick it up. Must be something I am not doing
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141050)
 * Hi,
 * yes you can use {eurl} in shortcode or button settings.
 * Shortcode like [wpi_designer_button id=336 link={eurl}]
    Button link input filed
   like {eurl}
 * send the complete url of your page.
 * If still issue let me know.
 * Regards,
 * PRALI
 *  Thread Starter [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141054)
 * Sorry Another question what are you using for {eurl} a custom field tag or attri?
   I may not be capturing it in the same area as you.
    Many thanks
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141055)
 * Hi ,
 * In link attribute you can place any POST/GET variable like {eurl} with or without
   text.
 * Designer Button shortcode capture any GET/POST variable from the page.
 * Example 1:
    ————————————————- page: [http://yahoo.com/?user=123](http://yahoo.com/?user=123);
 * from above link we can capture GET variable “user” into our Shortcode using {
   user}.
 * if content of {user} is “123”
    then you can use below code [wpi_designer_button
   id=336 link=” [http://google.com?register.php](http://google.com?register.php)?{
   user} “]
 * Example 2:
    ——————————————————– page: [http://yahoo.com/?eurl=http://google.com/register.php?123](http://yahoo.com/?eurl=http://google.com/register.php?123);
 * from above link we can capture GET variable “eurl” into our Shortcode using {
   eurl}.
 * if content of {eurl} is “[http://google.com/register.php?123&#8221](http://google.com/register.php?123&#8221);
   
   then you can use below code [wpi_designer_button id=336 link=” {eurl} “]
 * ———————————————————–
    Please don’t worry. i will solve this issue. Let me know
   after you try above process.
 * Regards,
 * SHAKIR
 *  Thread Starter [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141071)
 * Hi
    I have just been experimenting with the entries above. I cannot seem to pick
   up my attributes. Does this information have to be appearing on the the page 
   content itself? . I am adding via custom fields to the page make up, but the 
   information does not appear on the page itself.? I guess I have my method of 
   capturing the eurl information setup in correctly. Thanks for your efforts. I
   will try and solve the issue by trial and error.
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141072)
 * Hi,
 * I understood.
 * Please follow below steps.
 * 1. Open page where you want to capture the url custom field.
    2. Save page as
   html. 3. Send that html file to [info@prali.in](https://wordpress.org/support/topic/variable-data-in-button-link/info@prali.in?output_format=md)
   I will try to solve it.
 * Regards,
 * Prali

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

The topic ‘Variable data in Button Link.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpi-designer-button-shortcode_413a0e.
   svg)
 * [WPi Designer Button](https://wordpress.org/plugins/wpi-designer-button-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpi-designer-button-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpi-designer-button-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/wpi-designer-button-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpi-designer-button-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpi-designer-button-shortcode/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [WooPrali](https://wordpress.org/support/users/wooprali/)
 * Last activity: [10 years, 12 months ago](https://wordpress.org/support/topic/variable-data-in-button-link/#post-6141072)
 * Status: resolved