woocommerce – How Can I add author metadata for a product? [closed]

In the Edit Product screen, under the Custom Fields heading, create a new field, for example product_author. Then you need to edit your template file where you want to display the field, probably content-product.php, and call it this way:

<?php echo get_post_meta($post->ID, 'product_author', TRUE); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)