Title: Different URLs for same button?
Last modified: August 22, 2016

---

# Different URLs for same button?

 *  [usintergroup](https://wordpress.org/support/users/usintergroup/)
 * (@usintergroup)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/different-urls-for-same-button/)
 * I love your plugin, it is very good. So far I found a problem. I want to create
   my own “Add to Cart” button. This button will be used in several pages, with 
   the same look and text, but the link when you click on the button should be different,
   depending on the page where I insert the button. So my question is if is possible
   to use the same button on several pages, but to include the link/URL directly
   on the page where the button is inserted? I assume that you can add some code
   to the [maxbutton id=”2″] directly on the page where such code is inserted. What
   type of code do I need to add? Thanks!
 * [https://wordpress.org/plugins/maxbuttons/](https://wordpress.org/plugins/maxbuttons/)

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

 *  Plugin Author [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * (@johnbhartley)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/different-urls-for-same-button/#post-5401594)
 * Yes, you could use [maxbutton id=”2″ text=”Search Google” url=”[http://google.com”%5D](http://google.com”%5D)
   and that would be the 17 button with the text as Search Google, pointing to the
   google URL.
 * You don’t need the text field in there, you could just use [maxbutton id=”2″ 
   url=”[http://yourURL.com”%5D](http://yourURL.com”%5D)
 * Hope that helps!
 *  [solste](https://wordpress.org/support/users/solste/)
 * (@solste)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/different-urls-for-same-button/#post-5401712)
 * HI, Instead of url I would like to use a shortcode to insert the button in my
   list of events.
 * [events_list_grouped mode=”monthly” country=”UK”] #_EVENTLINK – On #_EVENTDATES
   at #_EVENTTIMES- Will take place @#_LOCATIONLINK
    [maxbutton id=”1″] [/events_list_grouped]
 * Here the button doesn’t exist as I assume I created it with the shortcode #_EVENTURL
 * Could you please help me with creating a button which says register and link 
   to each event links.
 * Thanks,
 * S.
 *  Plugin Author [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * (@johnbhartley)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/different-urls-for-same-button/#post-5401729)
 * Which plugin are you currently using to get the event list? If you could let 
   us know we’ll run some tests to see if we can replicate the issue and come up
   with a solution.

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

The topic ‘Different URLs for same button?’ is closed to new replies.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

## Tags

 * [button link](https://wordpress.org/support/topic-tag/button-link/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 3 replies
 * 3 participants
 * Last reply from: [johnbhartley](https://wordpress.org/support/users/johnbhartley/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/different-urls-for-same-button/#post-5401729)
 * Status: not resolved