$option1) {
if ($key == '' || $key == NULL) {
} else {
$of_key = $option['id'] . '_' . $key;
$saved_std = salejunction_get_option($of_key);
if ($saved_std == 'true') {
$window[] = $key;
}
}
}
}
}
if (post_type_exists('product')) {
if (!empty($window)) {
$args = array(
'orderby' => 'id',
'order' => 'ASC',
'include' => $window,
'number' => '10'
);
} else {
$args = array(
'orderby' => 'id',
'order' => 'ASC',
'number' => '10',
'hierarchical' => false,
);
}
$categories = get_terms('product_cat',
$args);
}
?>