Title: Add search fields
Last modified: July 5, 2017

---

# Add search fields

 *  Resolved [luguru](https://wordpress.org/support/users/luguru/)
 * (@luguru)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/add-search-fields-2/)
 * Hello, I’m using Events Manager with Divi. I have created custom fields with 
   attributes in the events, on the event page it shows me correctly. Now I want
   to add those attributes to the advanced search form so I can search with them.
   
   I have tested with what it puts on these two links [http://wp-events-plugin.com/tutorials/adding-custom-event-search-form-fields/](http://wp-events-plugin.com/tutorials/adding-custom-event-search-form-fields/)
   [http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/](http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/)
   but it does not work for me. What am I doing wrong?

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/add-search-fields-2/#post-9290686)
 * maybe this snippet can help you out – [https://pastebin.com/QB49QGwt](https://pastebin.com/QB49QGwt)
 *  Thread Starter [luguru](https://wordpress.org/support/users/luguru/)
 * (@luguru)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/add-search-fields-2/#post-9290947)
 * Thank you very much for answering. I have copied the code in the function.php
   and I have made the changes it requests but it does not work. Can you think of
   where the error may be?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/add-search-fields-2/#post-9291967)
 * Have you tried changing _event\_type_ to the name of your custom attribute?
 *  Thread Starter [luguru](https://wordpress.org/support/users/luguru/)
 * (@luguru)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/add-search-fields-2/#post-9293645)
 * yes 🙁
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/add-search-fields-2/#post-9298914)
 * Can you post your version of the code snippet? Please the _code_ button to make
   sure the code doesn’t get mangled.

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

The topic ‘Add search fields’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/add-search-fields-2/#post-9298914)
 * Status: resolved