Title: URL attribute request in button shortcode
Last modified: August 24, 2016

---

# URL attribute request in button shortcode

 *  Resolved [rotbieest](https://wordpress.org/support/users/rotbieest/)
 * (@rotbieest)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/)
 * Hi again!
 * I was wondering if you see it possible to use the same button again and again,
   but with the possiblity of only changing the destination url from within the 
   shortcode via an attribute? For example: [wpi_designer_button id=’2634′ url=”
   www.example.com”]
 * This has to do with the previous thread (which you managed to resolve amazingly,
   thanks!) that was about a button to book a package holiday (hotel + flight).
 * The idea would be to show this same button on every hotel page, but obviously
   the url would need to be changed for every hotel.
 * I realise this can be done by simply replicating the same button and linking 
   it to a different url, but when it comes to large quantities of accommodations,
   this would result in lots of almost identical entries in the database, with only
   the target url that is different. Not to mention that it’s a lot of unpleasant
   work to create the same button again and again… 🙂
 * Looking forward to hearing your thoughts!
 * Best regards
 * [https://wordpress.org/plugins/wpi-designer-button-shortcode/](https://wordpress.org/plugins/wpi-designer-button-shortcode/)

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

 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6107895)
 * Hi,
 * I understood your requirement.
 * Its simple, you can override the link attribute of button shortcode.
 * Check below sample shortcode::
 * [wpi_designer_button id=12 link=”[http://google.com”%5D](http://google.com”%5D)
 * I hope, you will be satisfied with this.
 * Thanks & regards,
 * Prali
 *  Thread Starter [rotbieest](https://wordpress.org/support/users/rotbieest/)
 * (@rotbieest)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6107904)
 * Amazing! Thanks for the prompt reply once again and the awesome support!
 * Have a nice day!
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6107921)
 * In these days giving free service with prompt service client request is tough.
   I am trying my best to give prompt service. I am creating the new page in my 
   website for sponsers. Sponsers for development and feature request. I will be
   very happy if you are intersted to donate little amount for this plugin development.
 * Thanks &regards,
 * Prali
 *  Thread Starter [rotbieest](https://wordpress.org/support/users/rotbieest/)
 * (@rotbieest)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6107949)
 * Done!
    With pleasure
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6107953)
 * Hi,
 * Thanks for Donating for development of Designer Button plugin.
    Kindly send me
   your Photo and full name to display in my sponsor’s page.
 * Please email to [info@prali.in](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/info@prali.in?output_format=md)
 * Sponsors Page link [http://designerbutton.prali.in/sponsors/](http://designerbutton.prali.in/sponsors/)
 * Thanks & Regards,
 * PRALI
 *  [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108064)
 * Hi Prali, on a similar type of subject. Is possible to use the same button with
   varying urls that are capture in an attribute? If so what can be entered into
   the url part of the design something like link= href=”#_ATT{eurl}”. I just needed
   to know what format would be accepted here? Then what ever URL entered into my
   attribute {eurl} collected on my page setup will automatically populate the button.
   I hope that makes sense 🙂
    Many Thanks
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108068)
 * Hi grouchmaxweb,
 * Please give some examples. It will be easy for me to understand.
 * regards,
 * Prali.
 *  [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108069)
 * Hi
    As per your example here [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?
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108071)
 * Hi grouchmaxweb,
 * Yes, i understood your requirement. In next version i will add this feature to
   capture dynamically generated variable data in Button Link.
 * Thanks for showing interest on Designer Button.
 * Regards,
 * PRALI
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108072)
 * Hi grouchmaxweb,
 * If possible create separate support ticket for this. it will be easy for other
   users to find.
 * Regards,
 * PRALI
 *  [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108075)
 * sure will do
 *  Plugin Author [WooPrali](https://wordpress.org/support/users/wooprali/)
 * (@wooprali)
 * [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108076)
 * Thanks You grouchmaxweb.

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

The topic ‘URL attribute request in button shortcode’ 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/)

 * 12 replies
 * 3 participants
 * Last reply from: [WooPrali](https://wordpress.org/support/users/wooprali/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/url-attribute-request-in-button-shortcode/#post-6108076)
 * Status: resolved