Hi,
The code is exactly has you show.
The original on my file:
COPY CODE
if (!empty($categories)) {
foreach( $categories as $tax ) {
$terms = wp_get_object_terms($post->ID, $tax, array('fields' => 'ids'));
$args['tax_query'][] = array(
'taxonomy' => $tax,
'field' => 'id',
'terms' => $terms
);
}
}
}
How it satys after the update:
COPY CODE
if (!empty($categories)) {
foreach( $categories as $tax ) {
$terms = wp_get_object_terms($post->ID, $tax, array('fields' => 'ids'));
$args['tax_query'][] = array(
'taxonomy' => $tax,
'field' => 'id',
'terms' => $terms,
'orderby' => 'date'
);
}
}
}
Do you see anything wrong?
Thanks