Home Forums WoodMart support forum Brand image on product archive Reply To: Brand image on product archive

#418528

kinigakos
Participant

EDIT

I’ve managed to solve this.
$image = get_term_meta( $brands->term_id, 'image', true ); returns the brand image link and the ID like https:// domain.com/image.jpg,11123 so I’ve used the following

$imagestring = implode(',', $image);
$imagestring = preg_replace('/^([^,]*).*$/', '$1', $imagestring);
  • This reply was modified 2 years, 4 months ago by kinigakos.
  • This reply was modified 2 years, 4 months ago by kinigakos.