In WooCommerce I am trying to add "pa_artist" product attribute before the product title in single product page as below:
pa_attribute – product title
I would like the "artist" product attribute term name to be automatically listed before the title. I managed to add attribute to product title using this answer code.
What I need is to add an active link to the "artist" product attribute term name, that display the products for this attribute term name.
Based on Add specific product attribute after title on Woocommerce single products you can easily change the code to add a specific product attribute before the product title on WooCommerce single product pages as follows:
Code goes in functions.php file of your active child theme (or active theme). Tested and works.
Addition: For multiple linked product attributes terms use the following instead: