Title: Custom attribute values
Last modified: August 30, 2016

---

# Custom attribute values

 *  Resolved [flipknick](https://wordpress.org/support/users/flipknick/)
 * (@flipknick)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-attribute-values/)
 * Hi,
 * I´m working with Custom attributes and use something like this:
 * `#_ATT{Trainer}{Trainer Name 1|Trainer Name 2|etc.}`
 * [http://wp-events-plugin.com/documentation/event-attributes/](http://wp-events-plugin.com/documentation/event-attributes/)
 * I can use the attributes, but now I´d like to use create hyperlinks for each 
   trainer on the event page. For example, I want to create a link from “Trainer
   1” to the page “trainer-name-1”. Can I add these values in #ATT somehow?
 * Thanks!
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-attribute-values/#post-6194466)
 * yes, you can try something like
 * `<a href="#_ATT{Trainer_url}"> #_ATT{Trainer} </a>`
 *  Thread Starter [flipknick](https://wordpress.org/support/users/flipknick/)
 * (@flipknick)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-attribute-values/#post-6194473)
 * Thanks, but then I had to create an additional attribute “Trainer_url” with all
   the options (“trainer-name-1”, “trainer-name-2” …). This will work, but in the
   backend you would have to select the trainer and the trainer link separately.
   Is it possible to use something like preg_replace() for #_ATT{Trainer} to replace“%
   20” by “-” and so on?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-attribute-values/#post-6194505)
 * You should able to use _str\_replace_ to switch the spaces to a dash and _strtolower_
   to make it all lower case.
 *  Thread Starter [flipknick](https://wordpress.org/support/users/flipknick/)
 * (@flipknick)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-attribute-values/#post-6194539)
 * Okay, I´m using now 2 different attributes – I think that´s easier. But could
   you tell me in which file I could manipulate the attributes? Thanks!
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-attribute-values/#post-6194542)
 * The easiest and safest way to do that would be by creating a custom placeholder:
 * [http://wp-events-plugin.com/tutorials/create-a-custom-placeholder-for-event-formatting/](http://wp-events-plugin.com/tutorials/create-a-custom-placeholder-for-event-formatting/)

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

The topic ‘Custom attribute values’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [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/)

 * 5 replies
 * 3 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/custom-attribute-values/#post-6194542)
 * Status: resolved