{"id":13603756,"date":"2020-10-30T23:31:39","date_gmt":"2020-10-30T23:31:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/ingredients-as-attributes\/"},"modified":"2020-10-30T23:31:39","modified_gmt":"2020-10-30T23:31:39","slug":"ingredients-as-attributes","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/ingredients-as-attributes\/","title":{"rendered":"Ingredients as Attributes"},"content":{"rendered":"<p>I am helping someone with a WooCommerce site that caries various food items. We set out to include the ingredients for each item as an attribute but have run into problems. <\/p>\n<p>Essentially instead of importing, for example:<\/p>\n<p>ingredient 1, ingredient 2 ingredients 3, etc. (in that exact order). <\/p>\n<p>It imports each ingredient as a separate attribute (in the &#8220;ingredients&#8221; attribute group) and then displays them on the product page in alphabetical order. <\/p>\n<p>Obviously, and especially with ingredients (considering the ordering is important with the first ingredient in an ingredient is the main ingredient) does not work for us. <\/p>\n<p>It was recommended that we sidestep the whole problem by importing the ingredients as apart of the product description. However, I am afraid that this will impact the actual search results. <\/p>\n<p>Is there any way to address this issue and have the ingredients imported without being separated as individual attributes? For example:<\/p>\n<p> &#8220;ingredient 1, ingredient 2 ingredients 3, etc. (in that exact order).&#8221;<\/p>\n<p>Thanks in advance for any help with this. <\/p>\n","protected":false},"template":"","class_list":["post-13603756","topic","type-topic","status-publish","hentry","topic-tag-attributes"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13603756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13603756\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13603756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}