Woocommerce - Display single product attribute(s) with shortcodes in Frontend

后端 未结 2 498
旧时难觅i
旧时难觅i 2020-12-06 15:31

i\'ve read many Q/A\'s here during the last few days, but unfortunately none of them solved my issue.

I\'m trying to fetch product attributes and display them on the

2条回答
  •  日久生厌
    2020-12-06 16:24

    If anyone else just wants to simply output the attribute value as text, replace the $html .= line with this:

    $html .= strip_tags(get_the_term_list($product->get_id(), $taxonomy));
    

    @helgatheviking There must be a more elegant way than this! :)

提交回复
热议问题