Add the below code in your category controller inside products result loop.
'attribute_groups' => $this->model_catalog_installer->getProductAttributes($result['product_id']),
Then on your category.twig page add the following codes to view the particular attribute.
{% if product.attribute_groups %}
{% for attribute_group in product.attribute_groups %}
{% for attribute in attribute_group.attribute %}
{% if attribute.attribute_id == 14 %}
<p>Flavour: <span>{{ attribute.text }}</span></p>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
please note that you have to replace the 14 on the attribute loop with your exact attribute id. That you can check from the admin panel on attributes section.
hope this will resolve your issue.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…