Title: Adding attributes
Last modified: November 22, 2021

---

# Adding attributes

 *  Resolved [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/)
 * Hey I need fast help. I need the following things how can I achieve this.
 * – How can I add on products the attributes like: Color, material, size, gender
   so I can get those data for all when using product feed
    – How can I add only
   the MAIN product category in the product feed. Now when I choose category, it
   just pics all 3 categories (because I have the product in 3 categories) but I
   want that only the main category shows in the feed. How can I achieve this? –
   How can I add subcategories, as example let’s say I have the main category: “
   oil” and an subcategory on that “organic” how can I only get the data “organic”
   category in feed?

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

 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15091775)
 * Hi,
 * Thanks for using our plugin and reaching out to us.
 * With regards to your questions:
    - On the field mapping section of our plugin you can hit the orange “+ Add field
      mapping” button. That will result in an extra row mapping to appear in which
      in the left drop-down you can select the color, material, size and gender 
      and in the right drop-down map it to an attribute that holds this product 
      information for you
    - This is only possible when you have set one of the (main or sub)categories
      as “primary” category using the Yoast or Rankmath plugin. When you did so 
      can use the “Yoast/Rankmath primary category” attribute in the drop-down so
      the plugin will only use that category
 * Hope this answers your questions?
 *  Thread Starter [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15095439)
 * – Okay so for these attributes I just should add attribute in woocommerce products
   attributes.
    – I have YOAST installed, how can i set primary category can you
   send me where I have to do that?
 * You didn’t answer my last question. If last question is not possible, can I maybe
   add subcategory as attribute like the color, size etc. what do you recommend 
   for this?
 *  Thread Starter [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15095450)
 * and also another question, is it possible to switch the positions of the fields
   at field mapping, it is pretty annoying. Because I want to organize the data 
   better but I can not change the order of the datas.
 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15095559)
 * > Okay so for these attributes I just should add attribute in woocommerce products
   > attributes.
 *  –> Yes, and fill those on your product edit pages and map those new WooCommerce
   attributes to the correct fields
 * > I have YOAST installed, how can i set primary category can you send me where
   > I have to do that?
 *  Please see: [https://yoast.com/help/how-to-select-a-primary-category/](https://yoast.com/help/how-to-select-a-primary-category/)
 * > You didn’t answer my last question. If last question is not possible, can I
   > maybe add subcategory as attribute like the color, size etc. what do you recommend
   > for this?
 *  –> I did answer it, it is the same as for the main category. This can only be
   done when you have set it as a primary category
 * > Is it possible to switch the positions of the fields at field mapping, it is
   > pretty annoying
 *  –> No, that unfortunately is not possible
 *  Thread Starter [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15095579)
 * – okay ty
    – okay ty – Yeah I have main category, and I have selected the other
   categories on product pages. But how can I get the subcategory informations on
   the field, which data I have to select? Do you understand what I mean by this?
   I have let’s say a product that is in category (this is the main category): Oil
   and the subcategory is ‘organic’ how can I get these both in the feed in seperate
   fields. I now how to get main category, you helped me with that, but how I can
   get the subcategory. – Okay, I hope you guys will come with thise feature, it
   would be awesome.
 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15096016)
 * > Oil and the subcategory is ‘organic’ how can I get these both in the feed in
   > seperate fields. I now how to get main category, you helped me with that, but
   > how I can get the subcategory.
 * That unfortunately is not possible. You can set the primary category only on 
   one category and not both the main- and subcategory.
 *  Thread Starter [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15096443)
 * Okay, is there a workaround solution for this? maybe with attributes or something?
 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15096484)
 * Yes, of course you can create a new separate attribute for this and fill it on
   all your product edit pages and then map that new attribute to the (sub)category
   field on the field mapping section. This however would mean a lot of extra manual
   input work needs to be done.
 *  Thread Starter [ib1222](https://wordpress.org/support/users/ib1222/)
 * (@ib1222)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15099937)
 * okay, yeah that takes alot time. It would be really nice if you guys would have
   an option to have like a subcategory thing. Because I have to put in my feed 
   the main category (this works), but subcategory I can’t.. it doesn’t work so 
   that is really annoying. I hope you guys will come with this feature.

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

The topic ‘Adding attributes’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-feed-pro/assets/icon-256x256.png?rev=3601097)
 * [Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce](https://wordpress.org/plugins/woo-product-feed-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-feed-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-feed-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-feed-pro/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [ib1222](https://wordpress.org/support/users/ib1222/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/adding-attributes-3/#post-15099937)
 * Status: resolved