Exclude product attributes from taxonomy terms loop

Product attribute taxonomies are prefixed with pa_, so you can check the taxonomy name for that prefix and skip it if it exists:

if ( substr( $taxonomy->name, 0, 3 ) === 'pa_' ) {
    continue;
}

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