Display attribute on shop page after the title
add_filter( ‘the_title’, ‘YearOfMake’, 10, 2 ); function YearOfMake( $title, $post_id ) { if ( get_post_type( $post_id ) != ‘product’ && ! is_archive() ) return $title; if ( ! ( is_shop() || is_product_category() || is_product_tag() ) ) return $title; /* global $product; $attribute=”year-made”; $abv = $product->get_attribute($attribute); if(!empty($abv)) { $title .= ‘<br /><p>’ . $abv . ‘</p>’; … Read more