Title: Adding short code url to book button
Last modified: August 24, 2016

---

# Adding short code url to book button

 *  Resolved [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/adding-short-code-url-to-book-button/)
 * Hi, I am trying to work out a way of using the buy button on an event as link
   to my affiliate to process via their booking facility. This link being captured
   say from a custom field in the event built page.My issue is that ideally I would
   like to be able to add the correct variable affiliate page link attached to the
   buy button . I do not want the user to purchase just be directed to the appropriate
   event booking page. I would want it to say something more Information and availability.
   I am not sure if there is a short code and how it can be attached to the button.
   I have tried various ways . I can change the wording no problem it is the attaching
   of the events link is proving the stumbling block. Many thanks in advance for
   you advice. I am new at this and have limited coding knowledge so some what of
   a learning curve.
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years ago](https://wordpress.org/support/topic/adding-short-code-url-to-book-button/#post-6123550)
 * how about trying to use placeholder #_BOOKINGBUTTON under Events > Settings >
   Formatting > Events
 * [http://wp-events-plugin.com/documentation/placeholders/](http://wp-events-plugin.com/documentation/placeholders/)
 *  Thread Starter [grouchmaxweb](https://wordpress.org/support/users/grouchmaxweb/)
 * (@grouchmaxweb)
 * [11 years ago](https://wordpress.org/support/topic/adding-short-code-url-to-book-button/#post-6123612)
 * Just adding a button is not doing what I require as I link a #_ATT{key} to the#
   _BOOKINGBUTTON . It will only show button when booking or REGISTERED is empowered.
   Also does not take user to the desired url. Seem the best way is to use another
   plugin to create button and the load the url into that. If only there was a way
   to capture a specified url field in the event page, and then this code be some
   way related via short code to the book button. Still working on other ideas as
   well. The URl is variable so I believe this is the issue
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years ago](https://wordpress.org/support/topic/adding-short-code-url-to-book-button/#post-6123654)
 * Using code like this in the formatting area will give you the basic link, you
   can then add some CSS to it to make it look more button-like:
 *     ```
       <a class="booking-button-link" href="#_ATT{key}">Book Now</a>
       ```
   

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

The topic ‘Adding short code url to book button’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/adding-short-code-url-to-book-button/#post-6123654)
 * Status: resolved