Home › Forums › WoodMart support forum › Theme Settings Option Preset Problem › Reply To: Theme Settings Option Preset Problem
May 18, 2021 at 9:51 am
#293259
Artem Temos
Keymaster
Hello,
Yes, it is a bug in our theme. Try to edit the file woodmart/inc/options/class-presets.php
and replace the following code
if ( 'term_id' === $rule['type'] && ! empty( $rule['value_id'] ) ) {
$term_object = false;
$taxonomies = get_taxonomies();
foreach ( $taxonomies as $tax_type_key => $taxonomy ) {
$term_object = get_term_by( 'id', $rule['value_id'], $taxonomy );
if ( ! $term_object ) {
break;
}
}
if ( $term_object ) {
$title = $term_object->name;
}
}
with this one
if ( 'term_id' === $rule['type'] && ! empty( $rule['value_id'] ) ) {
$taxonomies = get_taxonomies();
foreach ( $taxonomies as $taxonomy ) {
$term_object = get_term_by( 'id', $rule['value_id'], $taxonomy );
if ( $term_object ) {
$title = $term_object->name;
}
}
}
Kind Regards