Title: Custom_label_0 problem
Last modified: August 31, 2020

---

# Custom_label_0 problem

 *  Resolved [palkhifashion](https://wordpress.org/support/users/palkhifashion/)
 * (@palkhifashion)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom_label_0-problem/)
 * Hello Antonino,
    First of all thanks for the great plugin. I am using the following
   code to define the “Store Code” attribute in the product feed.
 * `add_filter('aepc_feed_item', function($fields, \PixelCaffeine\ProductCatalog\
   FeedMapper $item) { if ($product = wc_get_product($item->get_item()->get_id())){
   if(!empty($product->get_attribute('storecode'))) { $fields['g:custom_label_0']
   = $product->get_attribute('storecode'); } } return $fields; }, 10, 2);`
 * I can get the value of that attribute in my product feed which is “1” as following:
 * `<g:google_product_category>Clothing & Accessories</g:google_product_category
   > <g:custom_label_0>1</g:custom_label_0>`
 * But How do I change
    `<g:custom_label_0>1</g:custom_label_0>`
 * to 
 * `<g:Store code>1</g:Store code>`
 * Thank you in advance.

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

 *  Thread Starter [palkhifashion](https://wordpress.org/support/users/palkhifashion/)
 * (@palkhifashion)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom_label_0-problem/#post-13341683)
 * Found the solution. Thanks.
 *     ```
       add_filter('aepc_feed_item', function($fields, \PixelCaffeine\ProductCatalog\FeedMapper $item) {
       	($product = wc_get_product($item->get_item()->get_id()));
       	$fields['g:store_code'] = $product->get_attribute('storecode');
       	return $fields;
       }, 10, 2);
       ```
   
 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/custom_label_0-problem/#post-13447462)
 * Hi,
 * sorry I read only now this other topic. I’ve replied also here: [https://wordpress.org/support/topic/custom_label_0-problem/](https://wordpress.org/support/topic/custom_label_0-problem/)
 * Anyway, I’m glad it works for you 🙂

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

The topic ‘Custom_label_0 problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pixel-caffeine_e2ce0c.svg)
 * [Pixel Caffeine](https://wordpress.org/plugins/pixel-caffeine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixel-caffeine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixel-caffeine/)
 * [Active Topics](https://wordpress.org/support/plugin/pixel-caffeine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixel-caffeine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixel-caffeine/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/custom_label_0-problem/#post-13447462)
 * Status: resolved