Title: Missing fields from API
Last modified: April 6, 2022

---

# Missing fields from API

 *  Resolved [Danilo Krdzic](https://wordpress.org/support/users/krdza93/)
 * (@krdza93)
 * [4 years ago](https://wordpress.org/support/topic/missing-fields-from-api/)
 * Hello,
 * I am using Vebraalto in combination with this plugin and everything works except
   a few fields. Maybe I am doing something wrong, but I would love you to tell 
   me if this is possible or not, and if yes, how to do it. If not, do you know 
   when it will be?
 * **Floor Area (square footage)** – e.g. in wordpress we should have property size(
   floor area) showing the same as in the system. This does not seem to be pulling
   across. [https://www.screencast.com/t/LA6sX91kA](https://www.screencast.com/t/LA6sX91kA)
 * **Property type (e.g. house, bungalow, apartment)** – There seems to be a field
   in WordPress for this but the details are not displaying from Alto. e.g. it should
   show as an “Apartment” [https://www.screencast.com/t/Pfrk4YOv](https://www.screencast.com/t/Pfrk4YOv)
 * **Agent/Negotiator** – The negotiator field is both Alto and WordPress but it
   is not showing correctly in WordPress. Is this because there are no WP users 
   setup that can link between Alto and WP? [https://www.screencast.com/t/4wHCY9wBbfa](https://www.screencast.com/t/4wHCY9wBbfa)
 * Thanks in advance! 🙂

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

 *  Plugin Author [Property Hive](https://wordpress.org/support/users/propertyhive/)
 * (@propertyhive)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15536506)
 * Hi Danilo,
 * Floor area – We don’t have a field for this by default in Property Hive. You 
   would need to:
 * a) Create a custom field using our Template Assistant add on ([https://docs.wp-property-hive.com/add-ons/template-assistant/custom-fields/](https://docs.wp-property-hive.com/add-ons/template-assistant/custom-fields/))
   
   b) Add a snippet like so to import this field from Alto accordingly: [https://gist.github.com/propertyhive/ada71d8dcb6c9f6af344e75ac10a1985](https://gist.github.com/propertyhive/ada71d8dcb6c9f6af344e75ac10a1985)
 * Property type – I suspect your mappings haven’t been setup in the import settings.
   See the section in this troubleshooting doc about property types etc not getting
   set:
 * [https://docs.wp-property-hive.com/add-ons/property-import/troubleshooting/](https://docs.wp-property-hive.com/add-ons/property-import/troubleshooting/)
 * Agent/Negotiator – Although this field might be present in Vebra, I can’t see
   that we get this field in the data. If you go into a property record in Property
   Hive and click ‘Show Import Data’ you’ll see the information we receive from 
   Alto, and I don’t think negotiator is in there. If Vebra can provide the data
   we’ll gladly look to support it.
 * Hope that helps,
    Steve
 *  [phildegruchy](https://wordpress.org/support/users/phildegruchy/)
 * (@phildegruchy)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15572700)
 * Hi there,
 * I work with Danilo. We can’t find the “Show Import Data” button that you mention.
   Please can you explain where we find this.
 * Thanks,
    Phil
 *  Plugin Author [Property Hive](https://wordpress.org/support/users/propertyhive/)
 * (@propertyhive)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15574178)
 * Good morning,
 * Can you confirm the version of the import add on being used? This feature was
   added in version 1.2.14.
 * If you’re running this version or later, you should see the ‘Show Import Data’
   link at the top of a property record in WordPress.
 * Thanks,
    Steve
 *  Thread Starter [Danilo Krdzic](https://wordpress.org/support/users/krdza93/)
 * (@krdza93)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15576357)
 * Hello Steve,
 * We are using 1.2.87 version of the import add-on.
    Also, floor area is not working,
   we added a custom field and code snippet to the functions.php as you suggested
   but there is an error in the import log I noticed:
 *     ```
       20:01:10 20th April 2022 - Getting all properties for initial population
       20:01:26 20th April 2022 - Parsing properties
       20:01:26 20th April 2022 - Starting import
       20:01:26 20th April 2022 - Beginning to loop through 154 properties
       20:01:26 20th April 2022 - AGENT_REF: 31002850 - Importing property 1 with reference 31002850
       20:01:26 20th April 2022 - AGENT_REF: 31002850 - This property has been imported before. Updating it
       20:01:26 20th April 2022 - AGENT_REF: 31002850 - Successfully updated post. The post ID is 3228
       20:01:27 20th April 2022 - AGENT_REF: 31002850 - Imported 3 photo URLs
       20:01:27 20th April 2022 - AGENT_REF: 31002850 - Imported 1 floorplan URLs
       20:01:27 20th April 2022 - AGENT_REF: 31002850 - Imported 1 brochure URLs
       20:01:27 20th April 2022 - AGENT_REF: 31002850 - Imported 0 EPC URLs
       20:01:27 20th April 2022 - AGENT_REF: 31002850 - Imported 0 virtual tours
       20:01:27 20th April 2022 - Error:Uncaught Exception: Serialization of 'SimpleXMLElement' is not allowed in /nas/content/live/111111111/wp-includes/functions.php:617
       Stack trace:
       #0 /nas/content/live/111111111/wp-includes/functions.php(617): serialize(Object(SimpleXMLElement))
       ```
   
 *  Thread Starter [Danilo Krdzic](https://wordpress.org/support/users/krdza93/)
 * (@krdza93)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15591109)
 * [@propertyhive](https://wordpress.org/support/users/propertyhive/)
 * Any info on this one?
    The floor Area not working…
 *  Plugin Author [Property Hive](https://wordpress.org/support/users/propertyhive/)
 * (@propertyhive)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15596044)
 * Thanks for confirming version number. You should then see ‘Show Import Data’ 
   when you go into a property record.
 * Re floor area, I’ve updated the snippet to a) check the XML node is set and b)
   cast it to a string:
 * [https://gist.github.com/propertyhive/ada71d8dcb6c9f6af344e75ac10a1985](https://gist.github.com/propertyhive/ada71d8dcb6c9f6af344e75ac10a1985)
 * As per the comment in the snippet, you might need to check the field name. If
   still not working please send me a copy of the XML shown under ‘Show Import Data’
   and I’ll look through it to see if I can work out the field name.
 * Thanks,
    Steve
 *  [mariadimova](https://wordpress.org/support/users/mariadimova/)
 * (@mariadimova)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15664136)
 * Hi Steve,
 * This is Maria, I work with Danilo too.
 * We were able to make the floor area work using the snippet you provided, but 
   altering ‘min’ to ‘max’, just FYI.
 * Re. Negotiators
 * I contacted Alto, and this is their reply:
    _One option would be to use the User#
   1 field or User #2 field as these are uploaded, you’ll need to check with Property
   Hive if they map these fields thou._
 * We’ve added dummy data to both fields and it’s coming through, here’s a screenshot:
   [https://prnt.sc/cQif_Vlser20](https://prnt.sc/cQif_Vlser20)
 * How can we make it work? Add email address of Negotiatior as User1 and have the
   same WordPress user email?
 * Many thanks,
    Maria
 *  Plugin Author [Property Hive](https://wordpress.org/support/users/propertyhive/)
 * (@propertyhive)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15665597)
 * Hi Maria,
 * If you use _userfield1_ and enter the full negotiator name as it exists in WordPress,
   you should then be able to use a snippet like so:
 * [https://gist.github.com/propertyhive/0e62c646130d72717b649ffc77907bda](https://gist.github.com/propertyhive/0e62c646130d72717b649ffc77907bda)
 * Thanks,
    Steve
 *  Thread Starter [Danilo Krdzic](https://wordpress.org/support/users/krdza93/)
 * (@krdza93)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15691994)
 * [@propertyhive](https://wordpress.org/support/users/propertyhive/)
 * Sorry but this does not work.
    This is from Alto ( [https://prnt.sc/oAzSfgVKHX7z](https://prnt.sc/oAzSfgVKHX7z))
   As you can see both Floor Area and Negotiator have been added.
 * Now in the property, we cannot see the Property Hive Contact that we have created
   and also the floor area:
 * Here comes our contact in users ( [https://prnt.sc/lNnIHpKQBdym](https://prnt.sc/lNnIHpKQBdym))
   
   This is an available selection in property ( [https://prnt.sc/kuubeo8kpeX5](https://prnt.sc/kuubeo8kpeX5))
   As you can see, it lists only admins, not the “property hive contact” role
 * Then, the same for the floor area: [https://prnt.sc/zwB6jKgaYnpS](https://prnt.sc/zwB6jKgaYnpS)
 * To be sure we added the codes you have provided us, here comes a screenshot of
   the functions.php [https://prnt.sc/SLkXuW4WFZXf](https://prnt.sc/SLkXuW4WFZXf)
 *  Thread Starter [Danilo Krdzic](https://wordpress.org/support/users/krdza93/)
 * (@krdza93)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15713393)
 * [@propertyhive](https://wordpress.org/support/users/propertyhive/)
 * Updated all users to be admins as they can be added to Property, but the script
   does not work. Figured out that username has been added in Alto User#1 field 
   while in the script provided it was display_name.
 * So I fixed that display_name to user_login (which returns a WordPress username)
   but still cannot make it work.
 * [https://prnt.sc/lc1mxctvBi5Q](https://prnt.sc/lc1mxctvBi5Q)
 * Can you check this and finally help us solve the issue because we are waiting
   for too long to solve it and the stuff you are giving us are not doing the work
   as intended.
 *  Thread Starter [Danilo Krdzic](https://wordpress.org/support/users/krdza93/)
 * (@krdza93)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15713481)
 * [@propertyhive](https://wordpress.org/support/users/propertyhive/)
 * Solved it by checking all the options in foreach, display name, username, email

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

The topic ‘Missing fields from API’ is closed to new replies.

 * ![](https://ps.w.org/propertyhive/assets/icon-256x256.gif?rev=3206072)
 * [Property Hive](https://wordpress.org/plugins/propertyhive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/propertyhive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/propertyhive/)
 * [Active Topics](https://wordpress.org/support/plugin/propertyhive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/propertyhive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/propertyhive/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [Danilo Krdzic](https://wordpress.org/support/users/krdza93/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/missing-fields-from-api/#post-15713481)
 * Status: resolved