Title: Custom fields
Last modified: August 24, 2016

---

# Custom fields

 *  Resolved [ianoliver](https://wordpress.org/support/users/ianoliver/)
 * (@ianoliver)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/)
 * Hi
    I want to add some address fields to a donation form but I’m having trouble
   putting them in the right place. I’ve followed the documentation regarding ‘creating
   custom form fields’, which works fine for putting the fields before or after 
   the donation levels fields. However I want to put them after the email address
   field, and nothing I do seems to allow this. Am I missing something?
 * Thanks
 * Ian
 * [https://wordpress.org/plugins/give/](https://wordpress.org/plugins/give/)

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

 *  Plugin Contributor [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/#post-6172225)
 * Hey [@ianoliver](https://wordpress.org/support/users/ianoliver/) – It sounds 
   like you need to use another action. Have you tried hooking in at `give_purchase_form_before_submit`?
 * That action should allow you to insert the fields after the email field like 
   you want.
 *  Thread Starter [ianoliver](https://wordpress.org/support/users/ianoliver/)
 * (@ianoliver)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/#post-6172228)
 * Hi Devin
    I had tried a few other actions but none had the desired effect. `give_purchase_form_before_submit`
   did the trick, although the custom field is appearing below the ‘terms’ area.
   Is there an action to put it between the email address and the terms?
 * Thanks for your help
 *  Plugin Contributor [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/#post-6172350)
 * Hey sorry for the delay getting back. I’ve been traveling the last day or so.
   I think it’s a priority issue with your fields displaying _after_ the terms fields.
   Try setting the priority like so:
 * `add_action('give_purchase_form_before_submit', 'add_my_fields', -1);`
 *  Plugin Contributor [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/#post-6172410)
 * Any luck?
 *  Plugin Contributor [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/#post-6172412)
 * Hey I’m going to mark this as resolved. If you have any remaining questions please
   feel free to reach out!
 *  Thread Starter [ianoliver](https://wordpress.org/support/users/ianoliver/)
 * (@ianoliver)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/#post-6172413)
 * Hi
    Sorry, forgot to get back to you. I actually used `give_purchase_form_after_email`
   and that worked.
 * Thanks

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

The topic ‘Custom fields’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 6 replies
 * 2 participants
 * Last reply from: [ianoliver](https://wordpress.org/support/users/ianoliver/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-168/#post-6172413)
 * Status: resolved