Title: Bug in variable post_meta
Last modified: April 3, 2024

---

# Bug in variable post_meta

 *  Resolved [illmonkey](https://wordpress.org/support/users/illmonkey/)
 * (@illmonkey)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/bug-in-variable-post_meta/)
 * Hello i found a bug in export variables if i use the post_meta field for GTIN,
   MPN and Brand.
 * In traits-xfgmc-variable.php you use
 * ` get_post_meta( $this->**get_product**()->get_id() `
 *  please change it to
 * `get_post_meta( $this->**get_offer**()->get_id()`

The topic ‘Bug in variable post_meta’ is closed to new replies.

 * ![](https://ps.w.org/xml-for-google-merchant-center/assets/icon-256x256.png?rev
   =2467804)
 * [XML for Google Merchant Center](https://wordpress.org/plugins/xml-for-google-merchant-center/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-for-google-merchant-center/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-for-google-merchant-center/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-for-google-merchant-center/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-for-google-merchant-center/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-for-google-merchant-center/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [illmonkey](https://wordpress.org/support/users/illmonkey/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/bug-in-variable-post_meta/)
 * Status: resolved