Title: Using post-&gt;post_name as default value
Last modified: February 19, 2017

---

# Using post->post_name as default value

 *  Resolved [cwkelly3](https://wordpress.org/support/users/cwkelly3/)
 * (@cwkelly3)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/using-post-post_name-as-default-value/)
 * Hello. I am using the Participants Database plugin, setting up two different 
   registration types as described in this [post](https://xnau.com/using-multiple-registration-forms/).
   I have most of it working, but I cannot resolve the registration page with the
   form_type field using the default value of post->post_name. The result is the
   literal “post->post_name”. Any assistance would be appreciated.
 * Charles Kelly

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

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/using-post-post_name-as-default-value/#post-8821522)
 * OK, here are the things to check:
 * default value for the field should be post->post_name
    field needs to be a hidden
   field field needs to be enabled for the signup form
 * additionally: if you’re defining your fields in the shortcode, make sure your
   hidden field is included
 * To check if it’s working, load your signup form, then, using the [browser developer tools](https://xnau.com/browser-developer-tools/),
   inspect the fields at the top of the signup form. You should see your hidden 
   field in there.
 *  Thread Starter [cwkelly3](https://wordpress.org/support/users/cwkelly3/)
 * (@cwkelly3)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/using-post-post_name-as-default-value/#post-8823190)
 * Resolved!! Thank you for your help. I made two changes (hidden field, enabled
   for signup) and the form_type populated with the value of the post_name. Thank
   you!!

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

The topic ‘Using post->post_name as default value’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [post](https://wordpress.org/support/topic-tag/post/)
 * [post_name](https://wordpress.org/support/topic-tag/post_name/)

 * 2 replies
 * 2 participants
 * Last reply from: [cwkelly3](https://wordpress.org/support/users/cwkelly3/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/using-post-post_name-as-default-value/#post-8823190)
 * Status: resolved