Hello, I’ve been trying to use this code but it gives me an error.
“( ! ) Warning: ltrim() expects parameter 1 to be string, array given in …”
The problem seems to be that get_term_meta( $brands->term_id
returns an array.
Any ideas?
PS. The option from the theme options “Shop->Attribute swatches->Grid swatch attribute to display” is not an otpion for me because I’m using it for something else so I need to add this custom code that is mentioned in this thread.
-
This reply was modified 2 years, 4 months ago by
kinigakos.