Title: Mapped post object fields dont get the data
Last modified: September 21, 2020

---

# Mapped post object fields dont get the data

 *  Resolved [SomebodyWithAName](https://wordpress.org/support/users/dreamwire/)
 * (@dreamwire)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapped-post-object-fields-dont-get-the-data/)
 * I have made 2 post object fields with ACF. And in your plug-in i mapped those
   with a “post select” plug-in for CF7 ([https://wordpress.org/plugins/cf7-post-fields/](https://wordpress.org/plugins/cf7-post-fields/))
 * But the outcome is not selected in the post object fields? If i change them to
   text fields i see the post names, so what is going wrong here? Why is it not 
   working on a post object field?

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

 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapped-post-object-fields-dont-get-the-data/#post-13434581)
 * > Why is it not working on a post object field?
 * I reckon because the Post Select plugin for CF7 is using some non-std HTML field
   which the Post My CF7 plugin is not recognising.
 * If you need to have a dropdown select field that is populated using post objects
   or taxonomies, then I suggest you use the [Smart Grid-layout extension for CF7 plugin](https://wordpress.org/plugins/cf7-grid-layout/advanced/)
   which has a dynamic_dropdown tag field and is compatible with the Post My CF7
   plugin. Dynamic dropdown fields can be populated using taxononies or posts, see
   this [video tutorial](https://www.youtube.com/watch?v=t9he4Tca5o8) for more information.
 *  Thread Starter [SomebodyWithAName](https://wordpress.org/support/users/dreamwire/)
 * (@dreamwire)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapped-post-object-fields-dont-get-the-data/#post-13434612)
 * Hi Aurovrata,
 * But if i change the post object field in ACF to a normal text field then i get
   the value? Is that not strange then?
 * And if i installed the plug-in and i wanna edit a contactform i get a error message“
   There has been a critical error on your website.”
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapped-post-object-fields-dont-get-the-data/#post-13434685)
 * > But if i change the post object field in ACF to a normal text field then i 
   > get the value? Is that not strange then?
 * sorry, hadn’t understood that.
 * ACF plugin created fields often requires values to be stored in a specific format
   to work/be recognised by ACF.
 * For example a file upload field in ACF expects the file to be imported into the
   media table of WP and its media post ID stored in the field value.
 * However, the Post My CF7 plugin is designed to keep things more simple, and stores
   the values submitted in the form into meta-data/post fields. So a file is uploaded
   on the server and its URI stored in the field for example.
 * So I reckon that the ACF Post Object expects a post ID, while your form field
   is populated with a post title or post slug, and the plugin saves it as is.
 * If you really need ACF then you should hook the action fired at the end of the
   mapping process and programmatically save your form field in the format expected
   by ACF.
 *  Thread Starter [SomebodyWithAName](https://wordpress.org/support/users/dreamwire/)
 * (@dreamwire)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapped-post-object-fields-dont-get-the-data/#post-13435410)
 * This is solved, i used that plug-in i used already but i put the value on ID 
   instead of title and that was the fix.
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapped-post-object-fields-dont-get-the-data/#post-13437430)
 * great!

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

The topic ‘Mapped post object fields dont get the data’ is closed to new replies.

 * ![](https://ps.w.org/post-my-contact-form-7/assets/icon-256x256.png?rev=1985682)
 * [Post My CF7 Form](https://wordpress.org/plugins/post-my-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-my-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-my-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/post-my-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-my-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-my-contact-form-7/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/mapped-post-object-fields-dont-get-the-data/#post-13437430)
 * Status: resolved